Re: Xlock on login



Karel Demeyer <kmdemeye <at> vub.ac.be> writes:
> Wouldn't it be copol if you could have GDM automaticly log in a specifed
> user (like it's possible now) but have the X-server locked before gnome
> starts up?  So, gnome will start up in te background but the Xserver
> would still be locked so noone can do stuff with your desktop before the
> password is entered.  I'd love this as  because I always save my gnome
> sessions, it takes some time to start up gnome.  Nowadays, I boot my
> computer, wait for GDM, enter my password and wait again.  It would be
> better to just boot my computer, do some stuff, enter my apssword and be
> able to work with it immediately.

I think it should be possible to achive this with a little hack.
You can configure gdm to log in on first startup and then place
a little script into gnome-session startup which starts xlock.

To get this behavior only on the first log in you can additionally
touch a file in /tmp (presumed /tmp is cleaned on startup). 

The script I have in mind would look something like this:
--8<--

if [ ! -e /tmp/first-boot-done ]; then
    touch /tmp/first-boot-done
    exec xlock
fi

-->8--

Can't try it out at the moment, but I think it could work.

Rgds,
Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]