[0.7.4] cannot disable osd notifications

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

[0.7.4] cannot disable osd notifications

Post by jcfp »

As the title says. The relevant config item ("Enable NotifyOSD / Send notifications to NotifyOSD") is greyed out and readonly in the config.

Program is running with args --daemon --server 127.0.0.1:8080 -w0 -l0; python-notify is installed and notifications do work.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.4] cannot disable osd notifications

Post by shypike »

You need to tell me some more details, because I cannot reproduce the issue.
Looking at the code this behaviour is simply not possible.
But you never know.
User avatar
sander
Release Testers
Release Testers
Posts: 9255
Joined: January 22nd, 2008, 2:22 pm

Re: [0.7.4] cannot disable osd notifications

Post by sander »

FWIW: No problems here on my SAB 074 on Ubuntu 12.10: I check and uncheck the OSD box in Config -> Notify
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: [0.7.4] cannot disable osd notifications

Post by jcfp »

Apologies, turns out item is greyed out only if DISPLAY is not set in the environment when sab is started. In that situation, contrary to what I said earlier, notifications do not work at all (I must have mistaken a notification from a torrent program reporting a completed d/l for a msg from sab). To reproduce, prepend 'DISPLAY= ' to the normal sab command, i.e. 'DISPLAY= python SABnzbd.py'. But all this isn't really a bug, as the lack of that environment var is probably interpreted by pynotify that no graphical environment is present.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.4] cannot disable osd notifications

Post by shypike »

jcfp wrote: as the lack of that environment var is probably interpreted by pynotify that no graphical environment is present.
Indeed, if the pynotify refuses to load, notifications are disabled and the option is greyed out.
Post Reply