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
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