auto login with xfce?

Jan Dolinsky jan.enrico at gmail.com
Sun Feb 10 14:18:14 CET 2008


Hello,

As have been pointed out, option, - or -l or --login 
sets up your environment (paths etc.).

'source /etc/profile' is also necessary to set up some additional environment variables.

Hope it helps,
Jan 

On Fri, 8 Feb 2008 13:15:44 +0100
Joost Kremers <joostkremers at fastmail.fm> wrote:

> On Fri, Feb 08, 2008 at 03:50:38PM +0900, Jan wrote:
> > Hello,
> > 
> > To make your whole system work properly you should start your xfce4 as
> > follows:
> > 
> > su -l user_name -c 'source /etc/profile;startx &' &> /dev/null
> 
> what is the -l switch? man su doesn't mention it.
> 
> > Otherwise, you migh experience strange behaviour, like uncorrect system
> > time etc..
> 
> based on the suggestions of others, i have replaced slackware's default
> rc.4 with a file with the following content:
> 
> =====================
> 
> #!/bin/bash
> 
> exec su - user_name -c /usr/bin/startxfce4
> 
> =====================
> 
> which seems to work fine. at least the time is still ok... what else might
> go wrong, how do i go about checking it?
> 
> from what i understand from man su, su starts a login shell in which the
> command specified with -c is executed. AFAIU this login shell should read
> /etc/profile already, so i don't see any reason to do so explicitly.
> 
> unless i'm wrong, of course.
> 
> 
> -- 
> Joost Kremers
> Life has its moments
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org


-- 
Jan Dolinsky <jan.enrico at gmail.com>



More information about the Xfce mailing list