huion-linux-drivers icon indicating copy to clipboard operation
huion-linux-drivers copied to clipboard

Notifications won't display

Open lululock71 opened this issue 4 years ago • 1 comments

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

lululock71 avatar Nov 24 '19 09:11 lululock71

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)

Lecraminos avatar Dec 13 '19 23:12 Lecraminos