You are not logged in.
Pages: 1
I'm trying to write a script modi for rofi however whenever I run it rofi freezes up when my script exits and keeps the rest of the screen frozen as well until rofi is killed from another tty. I have come up with a hacky solution to the issue of having the script run "pkill rofi" when it finishes the work it needs to get done. Preferably I'd not do that so I'm wondering what the less hacky solution would be.
gist of the script in question(it runs fine but in case it's relavent): https://gist.github.com/Pagwin-Fedora/c … b7648143ab
edit: forgot to mention my window manager is i3 if that's at all relevant
Last edited by pagwin (2021-08-13 02:13:58)
Offline
How do you invoke rofi?
Try "--normal-window" to prevent rofi from grabbing input (freezing the screen)
Does the script terminate when you invoke it w/ an explicit argument?
Does it print anything to stdout?
sys.stdout.close()?
Offline
How do you invoke rofi?
Try "--normal-window" to prevent rofi from grabbing input (freezing the screen)
Does the script terminate when you invoke it w/ an explicit argument?
Does it print anything to stdout?sys.stdout.close()?
with the normal-window option rofi no longer freezes the screen but rofi still remains frozen upon making my selection(also I prefer rofi positioning itself independently of i3's window management). The script does terminate when I invoke it with an explicit argument and it only prints stuff to stdout when called with no arguments
Last edited by pagwin (2021-08-13 21:18:11)
Offline
How do you invoke rofi?
And did you try to close the stdout in the branch where you want to terminate rofi?
I prefer rofi positioning
This was just meant to ease testing.
Offline
Pages: 1