On Monday 03 December 2001 02:30 am, you wrote:
> Hi All,
>
> I'm new to Redhat, though I've been using SuSE
> for the past two years.
>
> Rather than Gnome or KDE, my desktop of choice is
> XFCE (it's superfast - if you'd like to try it,
> it's on the Redhat Powertools CD).
>
> My problem - I can't seem to make XFCE the
> default desktop. The switchdesk tool does not
> include an option for XFCE. Under SuSE there is
> an environment variable called $WINDOWMANAGER,
> but I can find no evidence of its existence in
> Redhat. I have a good book about Redhat which
> says that I can set the default desktop by
> creating a hidden file in my home directory
> called .Xclients-default with the command "exec
> startxfce" inside - alas, it does not work. The
> only way I can get XFCE to start is from the
> command line by typing "startxfce" - which is OK,
> but not elegant.
>
> I hope that somebody can tell me how to make XFCE
> the default.
>
> Thanks in advance,
> Robert Storey
>

You can add your own entries to the console switchdesk. Just create one for 
XCFE.

In /usr/share/apps/switchdesk create the file: Xclients.xcfe containing what 
you need to start XCFE. Something like:

#!/bin/bash

exec /full/path/to/startxcfe

#end Xclients.xcfe

Make Xclients.xcfe executable:
chmod a+x  Xclients.xcfe

Then backup your original file: /usr/bin/switchdesk-helper
Open it in a text editor and add an entry to it for XCFE:

#snippet from switchdesk-helper 
    TWM)
        [ ! -x /usr/X11R6/bin/twm ] && NotFound TWM
        DNAME="twm"
        NEW_XCLIENTS="$DATADIR/Xclients.twm"
        ;;
#add entry for XCFE
    XCFE)
        [ ! -x /full/path/to/startxcfe ] && NotFound XCFE
        DNAME="XCFE"
        NEW_XCLIENTS="$DATADIR/Xclients.xcfe"
        ;;
#end entry for XCFE
    *)
        echo "Unknown desktop requested: $1"
        exit 1
        ;;
esac
#end snippet from switchdesk-helper

Save switchdesk-helper. Then at the console prompt:
switchdesk XCFE

Now a "startx" should run XCFE. Hopefully anyway. ;-)

You might also change line 17 in switchdesk-helper to add XCFE.
Line 17:

echo "Please specify one of either KDE, GNOME, FVWM, Enlightenment, 
WindowMaker, XCFE, or twm."

Regards,
        Jim H



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to