-
Notifications
You must be signed in to change notification settings - Fork 608
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] Nothing happens when run from sxhkd, but works as expected from terminal. #1882
Comments
Most of the time when rofi runs fine on terminal but not from keybinding via tool X, its an environment issue. Can you get debug info from sxhkd? rofi -show drun > ~/log.txt 2>&1 |
No, that has no noticeable change from before i.e. no rofi and no log. Also, while this isn't my first time using arch or linux by far, it most definitely is not excluded that it is something messed up with my setup. I'm on arch so everything had to be setup manually. This means for sure there could be something wrong, made more likely given its a completely new pc build as well so the hardware is new to me. If you meant to run that command from the terminal instead let me know and I'll get it for you. |
I don't know sxhkd, never used it, but if no file is created then it looks like that command is not even executed. |
Hey, it seems sxhkd doesn't have a logging/debug feature, only it can let you know what keys you have pressed. If that would help, or if there is anything else I can do to give you some more info to ensure its not a bug of rofi let me know. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rofi version (rofi -v)
Version: 1.7.5
Configuration
https://gist.github.com/promitheas17j/1922e8a43ac27101806df634ab780455
Theme
https://gist.github.com/promitheas17j/23fea21931c40b3c5c8b803836cdf9fb
Timing report
https://gist.github.com/promitheas17j/ed005b9206adf5538a7eb4345caa8578
Launch command
rofi -show drun
Step to reproduce
Expected behavior
A rofi menu should appear as when run manually from the terminal.
Actual behavior
No rofi menu appears. If I change the command that sxhkd should run to the following:
not only does no rofi menu pop up, but no log is created either. When trying to run from sxhkd there appears to be nothing happening.
Additional information
For further testing with sxhkd, I created a test shortcut. That being:
which works as expected.
Furthermore, I commented that test shortcut out and replaced the super + @space command with this:
In both cases, a new alacritty instance opens with the echoed text test, leading me to believe that there is no (immediate) issue with sxhkd but rather with rofi.
In addition, I changed the sxhkdrc file as follows:
The script in question is as such:
Running it manually from the terminal spawns a rofi menu and creates a log file. Running it using the sxhkd keybind again produces no noticeable result.
Here is the log file produced when running command manually in a terminal: rofi.log
Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: