auto login with xfce?
Joost Kremers
joostkremers at fastmail.fm
Fri Feb 8 13:15:44 CET 2008
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
More information about the Xfce
mailing list