Page 1 of 1

[0.7.4] cannot disable osd notifications

Posted: October 29th, 2012, 7:19 am
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.

Re: [0.7.4] cannot disable osd notifications

Posted: October 29th, 2012, 1:38 pm
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.

Re: [0.7.4] cannot disable osd notifications

Posted: October 29th, 2012, 3:52 pm
by sander
FWIW: No problems here on my SAB 074 on Ubuntu 12.10: I check and uncheck the OSD box in Config -> Notify

Re: [0.7.4] cannot disable osd notifications

Posted: October 29th, 2012, 5:02 pm
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.

Re: [0.7.4] cannot disable osd notifications

Posted: October 30th, 2012, 1:11 pm
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.