mandrake 8.2 session dir restores itself
Hi I am trying to install xscreensaver on an mandrkae 8.2 system using gdm and icewm. I first edited /etc/X11/gdm/Init/Default with
#!/bin/sh
#Color is now handled by gdmgreeter itself
#/usr/bin/X11/xsetroot -solid "#007777"
xhost +localhost
xscreensaver-command -exit
xscreensaver -no-splash &
which semi works, the problem is that you have to logon manually for it to happen and I would prefer to automatically logon.
I've tried putting xscreensaver in the background program in gdm which doesn't work.
I've created a new file in called xscreensaver
#!/bin/sh
/etc/X11/gdm/Sessions
exec /etc/X11/xdm/Xsession IceWM
xhost +localhost
xscreensaver-command -exit
xscreensaver -no-splash &
chmod +x it
point Default symlink to that file
which works as I can log in and out in this method with success BUT
when I restart the computer the /etc/X11/gdm/Sessions actually restores it self somewhere so I make the directory readonly and it still gets restored so I asumme an init script with superuser access is changing the file
Ive also noticed the going between init 1 and init 5 doesn't restore that directory, wich leaves me with rc.sysinit and rc.local but who knows.
I have modified many scrips in /etc/X11/xdm/ /etc/X11/gdm/
with no success
I was even going to grep the /ect dir to find the string /etc/X11/xdm/Xsession but by now I'm starting to get a bit pisssed as I have all ready spent half a day on this problem. If someone has anyone got a better solution please help me
thanks in advanced
gerard
|