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

Notifications won't display #46

Open
lululock71 opened this issue Nov 24, 2019 · 1 comment
Open

Notifications won't display #46

lululock71 opened this issue Nov 24, 2019 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@lululock71
Copy link

Hi,
I have no notifications displaying despite that I've activated the option in config.ini.
I've checked the code, it should work.
If I test the notification code in my terminal, it works.
I tried to edit the code to use the Python implementation of libnotify but it doesn't work either.
I'm under Arch with XFCE. I've installed all dependencies, I dunno if I'm missing something...

@Lecraminos
Copy link

Same here for Manjaro + DeepIn... I experimented a little and have the suspect that this is due to the execution of the script via sudo... Thus, notify-send is executed as another user than the one that your X is running for.

A quick&dirty workaround, which is user-specific in this raw form though, can be found
in the Arch docs:

Replace the respective line in function keypress with:
cmd='sudo -u <user_name> DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/<user_id>/bus notify-send "{}" "{}"'.format(title, sequence)

Feel free to replace the user info with dynamic expressions. This may be obsolete in upcoming releases, since a migration away from the sudo-approach towards a dbus-solution is in the todo list (#31)

@joseluis joseluis added bug Something isn't working enhancement New feature or request labels Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants