You are not logged in.

#1 2021-08-13 02:12:53

pagwin
Member
Registered: 2019-07-18
Posts: 8

Rofi freezes for script modi

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

#2 2021-08-13 06:27:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Rofi freezes for script modi

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

#3 2021-08-13 21:17:34

pagwin
Member
Registered: 2019-07-18
Posts: 8

Re: Rofi freezes for script modi

seth wrote:

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

#4 2021-08-13 21:34:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Rofi freezes for script modi

seth wrote:

How do you invoke rofi?

And did you try to close the stdout in the branch where you want to terminate rofi?

pagwin wrote:

I prefer rofi positioning

This was just meant to ease testing.

Offline

Board footer

Powered by FluxBB