-
-
Notifications
You must be signed in to change notification settings - Fork 383
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] EWW daemon expect to run on default $PATH #968
Comments
Hi Dear I don't understand your issue make build runs 'cargo build --release' As far as i know cargo has no option like this you need to do this yourself (copy the files) For the issue to be solved i will try to create a make File |
Hey, @Lanpingner, thank you for the reply. Actually, my problem is not to automatically add the executable to If I have the time, I could try to check the source code to find something that would indicate that this is indeed the root of the problem here. If you can replicate the issue, that would be great as well, so we could minimize the chance that the issue is isolated to my case. |
Ohh got it, Although my eww compiled folder is in the $PATH |
If I understand your issue, this could be solved by having eww prepend its own binary path to the PATH environment variable when executing commands triggered by events, this shouldn't be that complicated code wise, though it should be documented as this could be confusing. |
Checklist before submitting an issue
Description of the bug
Apparently, the EWW daemon expects to run on a "default
$PATH
" (such as/usr/local/bin/
), at least when it is not manually run using a terminal emulator. When I tried to spawn the daemon on different autostart manners (exec-once
on Hyprland, systemD service,.zprofile
or.zlogin
), it always failed or was not properly working¹. My specific window was not working as well to properly start the daemon by itself when I open it using a keybinding.I think the issue is the path for two reasons:
/bin/sh: line 1: eww command not found
/usr/local/bin/eww
, all the problems magically disappeared.¹ By properly working, I mean at least the eventbox widget was not doing what I programmed it to do
onclick
andonhoverlost
.Reproducing the issue
wayland
feature since I'm on Hyprland.eww
executable to a folder that is not part of the "default $PATH" such as~/.local/bin/
.<PATH TO EWW>/eww daemon
on your autostart script, such as the ones I mentioned in the description section.<PATH TO EWW>/eww ping
or<PATH TO EWW>/eww logs
) or try to open a window that uses, for instance, eventbox and check if it is working as expected.Expected behaviour
I would expect one of two things.
At the very least, it should be clearer in the documentation that to avoid these sorts of issues it is recommended to have the eww executable on a path such as
/usr/local/bin
for those who manually compiled it.However, if I'm actually right and the issue is with the path, I would prefer to have eww take the first argument of the command to save it and use it internally if necessary to trigger itself. In other words, instead of calling
eww
, store "$0" and use it later if convenient. Unfortunately, I must admit that it sounds very unlikely that this is the root source of the problem, otherwise, it is quite an odd decision to call for internal functions of the code by spawning shell scripts to itself.Additional context
System
wayland
feature~/.local/bin/eww
Ways I tried to autostart the eww daemon
exec-once
: I tried just calling it using the full path, using an auxiliary script, and adding sleep between the commands and nothing helped. I even thought at first that it was an Hyprland issue)..zlogin
: I'm using ZSH as my default shell, so I tried invoking the eww daemon from it as well.EWW window
eww.yuck
I use a keybinding to open the window with this command:
<PATH TO EWW>/eww open --toggle --screen 0 powermenu
. That way, it opens the window on my active monitor.Note
I know I marked this issue as a bug although I was able to solve it. However, since the behavior is quite odd and more users may have a similar issue, I think, at least for documentation purposes, this issue may help someone to solve their problem with this amazing software.
The text was updated successfully, but these errors were encountered: