Notifications doesn't work on Linux standalone window managers (Openbox, Awesome WM and alike). I tried to install notification-daemon and dunst, but sending with notify-send "something" does not make any window to pop-up.
I tried to run polkit-gnome-agent and run directly notification daemons, but it does not help (while ago I solved similar problem in this way, but now it does nothing).
There is no any indications of errors unless I send trivial notification with python, then I get only vague error message:
File "/usr/lib/python3.3/site-packages/gi/types.py", line 113, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: Could not connect: Connection refused
Trivial C program outputs nothing (no error for example).
I'm using Archlinux with systemd and d-bus, I suspect it's a problem with polkit or some kind daemon not runing on window manager start, but have no idea, what could I try or how could I get more meaningfull error messages.
EDIT: I took sample code from there: https://wiki.archlinux.org/index.php/Libnotify#Python
Dbus should be runing because systemd has it as dependency. I have libnotify installed - it is package which provides notify-send. Also notification daemon should start as needed (only when notification arives), by following desktop file /usr/share/dbus-1/services/org.freedesktop.Notifications.service :
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/bin/dunst
I had even tried to run daemons directly (just execute) and tried sending notifications. If somenone knows how I could get me more info, please do not hesitate to suggest.
EDIT 2: I tried running notification daemon with sudo: sudo notification-daemon_name & (in my case sudo dunst &) and sudo notify-send something, then notification works. But when I try to do any of the previous actions as unprivileged user (which is important most programs send notification as unprivileged users), nothing shows.
notification-daemon refuses to work at all without any error or warning.
EDIT 3: Clearly it is permissions problem: I can't send notifications without root access. After clean reboot: sudo notify-send "something" works even without manually launching any daemons, however what I (and my launched programs) should do to be able send notifications without root privilegies as it is possible in Gnome or any other full desktop environments?
libnotifyas this provides thenotify-sendcommand (which is all you need)?