Skip to content
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

[BUG] Rofi (drun) stops working for GUI apps after resuming from suspend #86

Open
fedepau opened this issue Sep 1, 2023 · 0 comments
Open
Labels

Comments

@fedepau
Copy link

fedepau commented Sep 1, 2023

Rofi version (rofi -v)

Version: 1.7.5+wayland2-1-gff2338c3 (makepkg)

Configuration

https://gist.github.com/fedepau/d3a3e84d2a82aee459797b13200d7087

Theme

https://gist.github.com/fedepau/13bd79cef156b9aca173dfd63aa92c32

Timing report

No response

Launch command

rofi -show drun

Step to reproduce

On Arch Linux:

  1. Turn laptop on, system starts. Rofi works normally.
  2. Suspend system (lid closure/systemctl suspend), and resume
  3. After resuming, rofi won't launch selected GUI apps in drun mode

Expected behavior

The GUI app selected from drun should start.

Actual behavior

The app doesn't start.

Additional information

There is quite a peculiar scenario which pops up after resuming from suspend. Things I noticed so far:

  1. after resuming from suspend, if I press the keybind to "rofi -show drun" on my keyboard, rofi pops up normally but will only launch terminal-based applications. GUI apps just won't appear (i.e. I can launch kitty or ranger, but not Firefox).
  2. there is no significant difference in the stdout of Rofi before/after suspend: the only difference is a fraction of stdout related to the GUI app I'm launching (which is absent after resuming from suspend)
  3. If I launch "rofi -show drun" from a terminal rather than my keybinding, rofi works normally (TUI and GUI apps regardless)
  4. there is no environment variable which change before/after suspend, which may be the culprit (= the output of "env" is the same in both cases)

I'm honestly out of ideas on how to investigate the issue more deeply. I'll gladly provide any additional information that might be relevant.

EDIT: I tried multiple configuration files and themes (including defaults), and found the same behavior.
EDIT2: I think this behavior is limited to X applications

@fedepau fedepau added the bug label Sep 1, 2023
@fedepau fedepau changed the title [BUG] Rofi stops working for GUI apps after resuming from suspend [BUG] Rofi (drun) stops working for GUI apps after resuming from suspend Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant