Seeking HOWTO xsm with xfce4

Biju Chacko biju_chacko at vsnl.net
Sat Jun 21 06:32:32 CEST 2003


On Fri, 20 Jun 2003 23:08:25 -0400, Joe Klemmer wrote:

> On Fri, 2003-06-20 at 22:35, Biju Chacko wrote:
> 
> > man xsm is pretty helpful, actually.
> > 
> > For basic usage, just exec xsm from your xinitrc. Then use it's
> > prompts to start the applications you need (including wm, panel,
> > etc). Save the session and choose the same session name when you
> > next start.
> 
> 	This is where I'm losing track.  I'm running with gdm and the
> 	only
> ~/.xinitrc file I have is for xfce3.  I know xfce4 works 'cause I'm in
> there now.  Does the ~/.xinitrc override whatever the default is for
> the environment that's loaded?  How is xfce4 called from gdm?  That's
> probably a better question.

Pay attention. The way this works is fairly ridiculous under RH. gdm
looks for scripts under /etc/X11/gdm/sessions. Those scripts are usually
set up to call /etc/X11/xdm/Xsession with a parameter that corresponds
to the suffix of one of the script files in /usr/share/apps/switchdesk/.

Got that? No? Me neither.

As an example, here is how I set up XFce4 in gdm before it came with
it's own scripts. I created a file in /etc/X11/gdm/sessions called
XFce4. The name of the file will appear as an option in GDM's menu.

ownership and permissions:

-rwxr-xr-x    1 root     root     46 Nov 16 2002 XFce4

file content:

--- cut here ---

#!/bin/bash

exec /etc/X11/xdm/Xsession xfce4

--- cut here ---

Then I created a file in /usr/apps/switchdesk/ :

-rwxr-xr-x    1 root     root          342 Oct 22  2002 Xclients.xfce4

content:

--- cut here ---

#!/bin/bash
########################################################################
#
# XFce
#
########################################################################

# Put a # at the start of the next 2 lines if you want anti-aliased
# fonts turned off.
GDK_USE_XFT=1; export GDK_USE_XFT
QT_XFT=1; export QT_XFT

exec /usr/bin/startxfce4

--- cut here ---

You can probably short-circuit this roundabout process by just putting
the contents of your planned xinitrc into /etc/X11/gdm/Sessions/XFce4.

However you'll then need to do another setup in order get things working
under runlevel 3.

HTH,

-- b

-- 
-----------------------------------------------------------------------
Biju 'botsie' Chacko                        biju_chacko at vsnl dot net
http://www.symonds.net/~botsie          Public Key available on request
-----------------------------------------------------------------------



More information about the Xfce4-dev mailing list