Lib Notify Notification doesn't working in Linux (ubuntu)

Get help with Sick Beard and report/discuss bugs

Lib Notify Notification doesn't working in Linux (ubuntu)

Postby zzecool » Thu Nov 29, 2012 4:31 am

I noticed that if you start sickbeard as a deamon using the included init script ( the user is same user like the login user specified from /etc/default/sickbeard ) the libnotify Notifier doesn't working and bring back an error : Error: Environment variables DISPLAY and DBUS_SESSION_BUS_ADDRESS aren't set. libnotify will only work when you run Sick Beard from a desktop login.

There is something wrong with the deamon because if i run :

echo $DISPLAY
and
echo $DBUS_SESSION_BUS_ADDRESS

im getting proper results ..

I even checked in python using the os.environ['DISPLAY'] , os.environ['DBUS_SESSION_BUS_ADDRESS'] and im still getting results , so i think the culprit is in the init script or in the sickbeard deamon code.

Now in reverse , if you stop the sickbeard service with : sudo service sickbeard stop and start again sickbeard by directly running the ./sickbeard.py in the sickbeard folder strangely the libnotify works like a charm.



Thanks in advance.
zzecool
 
Posts: 1
Joined: Fri Nov 16, 2012 11:02 am

Return to Support / Bug Reports

Who is online

Users browsing this forum: Bing [Bot] and 4 guests