0.7.0B3 Unable to activate NotifyOSD

Report & discuss bugs found in SABnzbd

0.7.0B3 Unable to activate NotifyOSD

Postby mgori » April 28th, 2012, 10:46 am

Hello,

For some reason I am unable to activate NotifyOSD in 0.7.0B3. I have the NotifyOSD packages installed. Anyone also have this issue?

ubuntu:/mnt/dlinkfs/TV$ dpkg --get-selections | grep notify-osd
notify-osd install
notify-osd-icons install

Version: 0.7.0B3
OS: Ubuntu 11.10
Install: Linux repo
Skin: Plush
Firewall: N/A
mgori
Newbie
Newbie
 
Posts: 3
Joined: June 7th, 2011, 3:47 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Postby jcfp » April 28th, 2012, 11:42 am

I think running the program with --daemon disables that setting automagically, with the setting checked but greyed out.
User avatar
jcfp
Release Testers
Release Testers
 
Posts: 562
Joined: February 7th, 2008, 1:45 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Postby shypike » April 28th, 2012, 6:14 pm

jcfp wrote:I think running the program with --daemon disables that setting automagically, with the setting checked but greyed out.

It shouldn't, I'll check.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Postby shypike » April 29th, 2012, 6:43 am

I checked on my out-of-the-box Ubuntu 11.10 and "Notification" just works.
In plain mode and in daemon mode.
At least it does when running from source, I haven't checked the package.
Could there be user account issues, where SABnzbd uses another account than
the current interactive user?
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Postby jcfp » April 29th, 2012, 7:31 am

On closer inspection, this issue seems to be restricted to sab processes started by the init script, and in recent ubuntu releases only. In a 10.04 vm, it still works all the way, but in 11.10 even when the user running the program is the same as the desktop user, it won't display notifications for a sab process started from init. When starting from a shell notify works with and without --daemon though, at the very least for the logged-in desktop user. I suspect this could be an intentional modification on the ubuntu end somewhere, or it's a result of differences in the process' environment, particularly the presence of certain environment vars related to Xorg.

*** edit: think I found the problem ;D ***
mgori: assuming you are indeed running sab as a service, try adding "export DISPLAY=:0.0" to /etc/default/sabnzbdplus. Without the quotes, on a line by itself. The display is usually 0.0 - if not, find the correct one by running echo $DISPLAY in a terminal. Don't know if this will work with processes started before there's any display active to begin with (i.e., the sab service on system boot), but at least it seems to fix things when restarting the service from the active desktop environment.
User avatar
jcfp
Release Testers
Release Testers
 
Posts: 562
Joined: February 7th, 2008, 1:45 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Postby mgori » May 3rd, 2012, 8:06 pm

Yes I am running both SAB as a service. I will try what you mentioned. Thanks for the great support/help.
mgori
Newbie
Newbie
 
Posts: 3
Joined: June 7th, 2011, 3:47 pm


Return to Bug Reports