[Mono-dev] Screensavers in C# with Linux

Valentin Sawadski valentin.sawadski at gmx.de
Sat Apr 21 08:05:39 EDT 2007


Hello Paul,

I've dug a little into the KDE screen saver and it seems that he works quite 
different from the way it works on windows.

Windows Invokes the .scr file with different params to either show or 
configure the screen saver, hower KDE uses a QtWidget called KScreenSaver 
which either shows the screen saver or the config dialog wether if it is 
being created with an windowId passed to the constructor or not. (See 
kscreensaver.h in the KDE-include dir)

So it should get a little more tricky than on windows if you try to integrate 
your screensaver to the existing ones. Howerver the KDE manual says the 
following:

= Using a non-KDE screen saver =
KDE does not prevent another screen saver from working. To use a different 
screen saver, such as xscreensaver, simply disable the KDE Screen Saver, and 
set up your other screen saver program normally.

So it should be possible to replace the KDE screensavers completely.

That is what I found out about it, but I can not promise it's correctness 
since my knowledge of KDE and Qt is very very limited.

Kind Regards,
Valentin

On Friday 20 April 2007 00:01, Paul wrote:
> Hi,
>
> It's pretty simple to write a screensaver for Win32 in C# (intercept a
> mouse and keyboard event and a few other bits, then rename the .exe
> to .scr).
>
> Does anyone know if it's as simple to write a screensaver in C# for
> Linux boxes (either Gnome or KDE desktop)?
>
> TTFN
>
> Paul



More information about the Mono-devel-list mailing list