0.7.0B3 Unable to activate NotifyOSD

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
mgori
Newbie
Newbie
Posts: 3
Joined: June 7th, 2011, 2:47 pm

0.7.0B3 Unable to activate NotifyOSD

Post by mgori »

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
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Post by jcfp »

I think running the program with --daemon disables that setting automagically, with the setting checked but greyed out.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Post by shypike »

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: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Post by shypike »

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
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Post by jcfp »

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.
mgori
Newbie
Newbie
Posts: 3
Joined: June 7th, 2011, 2:47 pm

Re: 0.7.0B3 Unable to activate NotifyOSD

Post by mgori »

Yes I am running both SAB as a service. I will try what you mentioned. Thanks for the great support/help.
Post Reply