adding xfce4 option in kdm or gdm

Brian J. Tarricone bjt23 at cornell.edu
Thu Mar 18 14:57:36 CET 2004


Ken Moffat wrote:

> Ken Moffat wrote:
>
>> I just upgraded Libranet linux from sid and a new 
>> /etc/gdm/Sessions/Xfce4 script was installed.
>> Here is mine, called /etc/gdm/Sessions/Xfce4
>>
>> #!/bin/sh
>> #
>> # Make Xfce4 selectable in the GDM menu
>> #
>>
>> exec /etc/X11/Xsession /usr/bin/xfce4-session
>>
>> Be sre to make it executable -
>>
>> chmod +x /etc/gdm/Sessions/Xfce4
>
>
> Sorry, this assumes a sid install. Testing may not have 
> /usr/bin/xfce4-sessions. Here is another option, which may work in 
> testing:
>
> #!/bin/sh
> #
> # Make Xfce4 selectable in the GDM menu
> #
>
> /usr/bin/xfce-mcs-manager
> /usr/bin/xfwm4 --daemon
> /usr/bin/xftaskbar4 &
> /usr/bin/xfce4-iconbox &
> /usr/bin/xfdesktop &
> exec /usr/bin/xfce4-panel
>
> As before, make it executable.


this will work, but isn't really the best solution. what you really want 
to do is have your /etc/gdm/Sessions/Xfce4 include the line 'exec 
/usr/bin/startxfce4'. that will properly run either the systemwide or 
per-user startup files, as well as set up your environment. if you have 
the session manager installed, it will run that instead. check out 
$sysconfdir/xfce4/xinitrc to see what i mean.

-brian



More information about the Xfce mailing list