Automatic login vs. manual login and screensaver lock
        Posted  
        
            by 
                Erik Johansson
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by Erik Johansson
        
        
        
        Published on 2011-02-10T12:41:37Z
        Indexed on 
            2011/02/10
            15:33 UTC
        
        
        Read the original article
        Hit count: 530
        
Is there a way to prevent a command from running when I login manually, but having it run when the computer starts up and GDM automatically logs me in.
This is the setup:
- in the Gnome "on start programs" settings I have a command that locks the screen 
gnome-screensaver-command -l - I have automatic login turned on.
 
That means that the screen will be locked when I turn on the computer, but it will also be locked when I manually login from GDM, is there a way to prevent this?
© Ask Ubuntu or respective owner