THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Dunric (dunric)
Attached to Project - awesome
Summary - rc.lua execution hang-up
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 3.4.8
Due in Version - Undecided
Due Date - Undecided
Details - Trying to read program output by io.popen hangs rc.lua's execution 
forever.

-- Sample code. Place it anywhere inside rc.lua, like the last statements for 
example.
fh = io.popen('/usr/bin/xrandr -q')
xrandr_out = fh:read('*a')     -- this hangs script execution, proces never 
returns

The above code snippet does work anywhere else, even in widget event handler 
also
defined in rc.lua, but it has to be run _after_ whole rc.lua is processed.
I see no reason io.popen won't work also in rc.lua, so finding it as a 
Awesome's bug.

io.popen    is a standard Lua library function
xrandr      is a standard XOrg utilty. xrandr can be replaced with other 
program (tested with xkb-switch).


More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=834

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to [email protected].

Reply via email to