Smarter Screen saver

Dmitriy Kropivnitskiy nigde at mitechki.net
Tue Sep 20 16:43:10 CDT 2005


There is no need for the lock file, since xscreensaver already supports
temporary activation/deactivation by using xscreensaver-command utility.
In the GNOME version of screensaver, the right way would probably be to
implement a message exchange between screensaver and an application over
d-bus.

lakcaj wrote:

>It would be very easy to implement.  All you would need is a simple lock
>file that xscreensaver looks for before starting.  For example, when
>totem starts a DVD, it creates the file /var/run/noscreeny_totem.pid. 
>When it stops, it removes that file.  Same for mplayer, except
>noscreeny_mplayer.pid would be created.  I'm sure it would be trivial
>for someone that can code to make xscreensaver check for any files that
>start with noscreeny in /var/run before it starts.
>
>
>  
>




More information about the ubuntu-devel mailing list