It is currently December 10th, 2018, 6:38 pm

[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

chao-samu » October 14th, 2018, 10:51 pm

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: 18445
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

jsmorley » October 15th, 2018, 1:53 am

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

chao-samu » October 15th, 2018, 10:00 pm

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

Didn't really recognized it.