Last visit was: It is currently 31/10/2014, 13:54


All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Gnome: lock session at startup
PostPosted: 24/04/2009, 19:30 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
There is a new custom package on my repository, gnome-settings-daemon, containing a patch written by me that allow to lock the session immediately after login.

The reason is simple: When I start my pc, I usually press the power button, then I go to do other stuff while it's booting.
With autologin enabled in gdm and session locked after login, I only have to insert my password to start to work.
The desktop session is already fully loaded and, when I'm on battery, the screen brightness is correctly set by gnome-power-manager.

To lock the session I just have to add the following command to 'Startup Applications':
Code:
gnome-screensaver-command --lock

the problem is that 'gnome-screensaver' has to be already started or else it does not work.

Everything worked good in gnome 2.24.x; in version 2.26.x 'gnome-screensaver' is started with a 30 seconds delay in order to make other stuff load faster.
This ruins all the plans.

My patch adds a timeout option that allow to set the delay (in seconds) before 'gnome-screensaver' is started. It defaults to 30 seconds.
If it's set to 0, 'gnome-screensaver' gets loaded instantly, so the session can be locked with no problems.

For completeness, this is the new gconf key:
Code:
/apps/gnome_settings_daemon/screensaver/start_screensaver_timeout

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Last edited by voRia on 24/04/2009, 21:08, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki