How do I set Xfce as my gdm default?

Todd And Margo Chester toddandmargo at gmail.com
Tue Dec 20 19:38:10 UTC 2011


> On 12/18/2011 07:53 AM, Lucas wrote:
>> On 12/18/2011 05:29 PM, David wrote:
>>> On 12/17/2011 3:28 PM, Todd And Margo Chester wrote:
>>>> On 12/17/2011 06:49 AM, David Boles wrote:
>>>>> On Sun, Dec 11, 2011 at 4:17 PM, Todd And Margo Chester
>>>>> <toddandmargo at gmail.com> wrote:
>>>>>> Hi All,
>>>>>>
>>>>>> I just set up a computer with Scientific Linux 6.1, using
>>>>>> the default "Workstation". Then I installed Xfce.
>>>>>>
>>>>>> Question, how do I change my gdm default from gnome to Xfce?
>>>>>>
>>>>>> /etc/gdm/custom.conf
>>>>>> [daemon]
>>>>>> DefaultSession=xfce.desktop
>>>>>>
>>>>>> Does not work. What am I doing wrong?
>>>>>>
>>>>>> Many thanks,
>>>>>> -T
>>>>>> _______________________________________________
>>>>>> xfce mailing list
>>>>>> xfce at lists.fedoraproject.org
>>>>>> https://admin.fedoraproject.org/mailman/listinfo/xfce
>>>>>
>>>>>
>>>>> yum install switchdesktop
>>>>>
>>>>> then run it in a terminal as<user>
>>>>>
>>>>> there is also a GUI yum install switchdesktop-gui
>>>>>
>>>>> again run it as<user>
>>>>>
>>>>
>>>> According to pbone.net there is only a switchdesk available
>>>> for FC15. YUM says nothing is available either (switchdesk,
>>>> switchdesktop, or switchdesktop-gui).
>>>>
>>>> I doubt it either as I believe it would give the same
>>>> result as this FC14 bug:
>>>>
>>>> https://bugzilla.redhat.com/show_bug.cgi?id=658247
>>>>
>>>> Thank you for the help,
>>>
>>> What release of Fedora is Scientific Linux 6.1 based on?
>>>
>>>
>>
>> I can suggest to look at /etc/X11/xinit/Xclients, but I am not sure that
>> gdm reads this file.
>> I use FXCE since 4.4.3, but never with gdm.
>
> Thank you!
>
> Now this piece of code look interesting (Xclients).  For starters,
> it explains what the "PREFERRED" variable in /etc/sysconfig/desktop
> is doing.
>
>
> /etc/X11/xinit/Xclients:
>
> GSESSION="$(which gnome-session 2>/dev/null)"
> STARTKDE="$(which startkde 2>/dev/null)"
>
> # check to see if the user has a preferred desktop
> PREFERRED=
> if [ -f /etc/sysconfig/desktop ]; then
>     . /etc/sysconfig/desktop
>     if [ "$DESKTOP" = "GNOME" ]; then
>         PREFERRED="$GSESSION"
>     elif [ "$DESKTOP" = "KDE" ]; then
>         PREFERRED="$STARTKDE"
>     fi
> fi
>
> if [ -n "$PREFERRED" ]; then
>     exec "$PREFERRED"
> fi
>
>
> When I next get to the server with this issue, I will
> change PREFERRED to "/usr/bin/startxfce4" and see what
> happens.   I will get back.
>
> -T

Nope.  Still did not work.  I had to go back to my cheezy
work around.  :'(

-T



More information about the xfce mailing list