2011-11-06 22:10, Tanguy Ortolo skrev: > Tanguy Ortolo, 2011-11-06 13:25 UTC+0100: >> Here is a patch to correct that: it adds a grep to look for “not running” in >> gnome-screensaver-command's stderr instead of relying on the exit code. I >> also >> modified the xscreensaver detection line just above to use the quiet option >> of >> grep, which is appropriate here. > > I have just realized that my patch may have unwanted side effets when > gnome-screensaver is not even installed, and thus the commande > gnome-screensaver-command not available. It should be checked first; I > can adjust my patch for that if you want. >
Well, that would be if the shell outputs "not running" when the command is not found. Which is not very likely, but you never know of course. I can add a check for it. -- Pelle -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

