It is currently April 20th, 2024, 12:15 am

[Suggestion] Lua; make io.popen available

Report bugs with the Rainmeter application and suggest features.
chao-samu
Posts: 6
Joined: June 23rd, 2017, 10:13 am

[Suggestion] Lua; make io.popen available

Post by chao-samu »

hi,

having the io.popen function available would nice.

Because it requires heavy workarounds for simple problems if popen is not available.
E. g. https://forum.rainmeter.net/viewtopic.php?f=99&t=9185&p=148989&hilit=popen#p148989

os.execute or calling SKIN:Bang() have drawbacks.

Also i haven't found in the docs that SKIN:Bang() makes it possible to call a specified exe or maybe I haven't found it.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Suggestion] Lua; make io.popen available

Post by jsmorley »

You certainly can execute external program with Rainmeter:

You can use something like LeftMouseUpAction=["C:\MyFolder\MyApp.exe"]

You can use the RunCommand Plugin

We have looked at popen, but it is just too inherently unstable to run unknown executable programs from a child process of Rainmeter like Lua.
chao-samu
Posts: 6
Joined: June 23rd, 2017, 10:13 am

Re: [Suggestion] Lua; make io.popen available

Post by chao-samu »

Thx for the reply, indeed for my purposes the RunCommand is sufficient.

Didn't really recognized it.