-
Notifications
You must be signed in to change notification settings - Fork 67
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
no libnotify notifications if dbus user session is used #76
Comments
on my Debian 10.1 notifications were not working and this was delaying apt runs for 50 seconds:
adding DBUS_SESSION_BUS_ADDRESS to /etc/needrestart/notify.d/400-notify-send solves it |
On my system the above patch does not fully close the issue, since DBUS_SESSION_BUS_ADDRESS is set, but not exported, as suggested by @Vladimir-csp. So it's not available in the notify-send call, which results in a timeout instead of a notification on my system. |
If dbus-user-session is used instead of dbus-x11, libnotify notifications do not work.
To solve this:
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $NR_USERNAME)/bus"
But I do not know it it will break notifications with dbus-x11. Perhaps, some condition is needed.
Offtopic: btw you can add
-a needrestart
to notify-send command to set application name in notificationsThe text was updated successfully, but these errors were encountered: