-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io.popen causing luastatus to hang #71
Comments
Does it also hang if you replace What versions of Lua, luastatus and lemonbar are you using? |
Can you please add Can you run luastatus under |
Anyway, I can’t reproduce it here with |
What versions of Lua, luastatus and lemonbar are you using? Does it also hang if you replace Can you please add |
Sorry! I forgot to mention those details.
Replacing popen with the date command will spawn the bar showing the date, everything remains responsive until I I have also tried switching from the inotify plugin to a simple timer, which will also hang after the second time cb is called. Adding the io.stderr:write before & after popen will print the first error as follows;
|
I've also tried different variants of luastatus & lemonbar, namely the vanilla variants without any patches, but the result remains the same. One thing I noticed is that it's only cpu and mem which end up freezing, the rest (bspwm, pulse, date/time) remains active. Any help would still be appreciated. |
I've been trying to write a widget for displaying the amount of new unread emails. It successfully calculates the number of new mail, but when running it with the lemonbar wrapper and other widgets like cpu-temperature (which also invokes io.popen) the bar will freeze and no longer update.
Here's the script in question;
Strangely, the same thing happens when trying to use the bluetooth example widget. I'm positive that io.popen is the function causing it to hang, as I've added a boatload of print statements to narrow it down.
I'm not a lua dev by any means, but I'd love to get this to work. Googling has brought me basically nowhere, so I was wondering if you could explain what I'm doing wrong (or if it's some sort of bug in luastatus.)
Thanks in advance.
The text was updated successfully, but these errors were encountered: