[xubuntu-users] Problems with sending Notifications from Python
Steve Litt
slitt at troubleshooters.com
Thu Oct 2 19:02:30 UTC 2014
On Thu, 02 Oct 2014 12:37:21 +0200
Christoph Robbert <chrobbert at gmail.com> wrote:
> Hey,
> I want to write a small python script which uses the xfce4-notifyd
> service. It sends a notification at the beginning and after some time
> (in my case 25 Minutes) a second one. Unfortunately I get the
> following error message when sending the second notification.
>
> gi._glib.GError:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The
> name :1.118 was not provided by any .service files
[snip Python specifics]
Make sure you've installed libnotify4 and libnotify-bin (the executable
command line utilities for libnotify).
Also, since you want to access libnotify from Python, install
python-notify.
[NOTE: These are the package names in Debian Wheezy. They might be
slightly different in Ubuntu]
Now perform the following command as a normal user:
notify-send "This is a test"
If the preceding fails to bring up a notification, you have more
fundamental problems than your Python bindings.
Also,
ps ax | grep notify
See what is and is not used as a notification daemon.
Just for fun, you might want to switch xfce4-notifyd for dunst, or vice
versa, and view the results.
Once notification is working from notify-send, you're in a better
position to debug your Python program.
HTH,
SteveT
Steve Litt * http://www.troubleshooters.com/
Troubleshooting Training * Human Performance
More information about the xubuntu-users
mailing list