GNOME Bugzilla – Bug 326145
retrocompatibily : catch "mplayer -stop-xscreensaver"
Last modified: 2006-03-04 11:34:41 UTC
Hello, I've found that when running gnome-screensaver, "mplayer -stop-xscreensaver movie.avi" is becoming useless. (screensaver will appears anyway) I have no idea on how mplayer and xscreensaver communicate, but maybe is mplayer not the only software that needs to desactivate screensaver. I suggest that, as long as it's possible, gnome-screensaver keeps retrocimpatibily and catches any "stop-xscreensaver". PS : I'm testing it under Ubuntu Dapper Drake. If this issue doesn't appear on other systems, I will report the bug to the Ubuntu BTS.
You might want to ask the mplayer developers to support gnome-screensaver. They can find the most recent DBUS API here: http://cvs.gnome.org/viewcvs/gnome-screensaver/doc/DBUS-API.txt?view=markup
Is there any standardization on how to stop a screensaver ? I wonder this because I suppose mplayer is not the only one in this case. For example if you want to use KDE-media-player in Gnome or whatever. If I want to write a cross-desktop software that needs to disable the screensaver, must I care about all existing screensaver ? If it does not exist, I think Freedesktop must perhaps investigate this ;-)
What's wrong with using the MIT-SCREEN-SAVER extension? Calling xdpyinfo on any XFree or Xorg server reveals support for that extension. The releavent header files for supporting this are in <extensions/saver.h>. As we still are on X, I believe we should avoid reinventing the wheel via DBUS or freedesktop.org, when there is an existing and sufficient X extension.