xscreensaver and xfce4 on Lenny

It seems that the default installation of xfce4 on Debian Lenny does not start the xscreensaver daemon by default. After looking here and there (mostly in Ubuntu forums) and reading the X startup scripts, I resolved the problem by simply creating $HOME/.xsession as follows:

#!/bin/bash
(sleep 5; /usr/bin/xscreensaver -no-splash) &
/usr/bin/startxfce4
/usr/bin/xscreensaver-command -exit

PS: I use xdm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s