Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-08-18 18:36:50

pnelsonsr
Member
Registered: 2013-04-26
Posts: 6

[Solved] The making startx start xfce

Switch from gnome3 on a Fedora19 system.  But startx starts gnome3 and I (instinctively) make the mistake of running startx rather than startxfce4.  I guess I would like a startgnome3 and a startxfce4 script but I would really like startx to start xfce.  Any advice?

Offline

#2 2013-08-18 22:16:23

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,230

Re: [Solved] The making startx start xfce

Have a look at the .xinitrc file in your home directory. You should be able to specify there which desktop environment you want as default (via startx).

Offline

#3 2013-08-20 15:43:41

pnelsonsr
Member
Registered: 2013-04-26
Posts: 6

Re: [Solved] The making startx start xfce

So there was no ~/.xinitrc so I went looking for the default which seems to be /etc/X11/xinit/xinitrc which calls /etc/X11/xinit/Xclients where desktops gnome and kde are shown set to be exec'ed using /etc/sysconfig/desktop file (which doesn't exist either so it defaults to gnome) and a $PREFERRED variable. 

So I created a ~/.xinitrc file with just "exec startxfce4" in it and although this works I'm wondering if this is the standard way?

Offline

#4 2013-08-20 17:07:00

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,230

Re: [Solved] The making startx start xfce

pnelsonsr wrote:

So I created a ~/.xinitrc file with just "exec startxfce4" in it and although this works I'm wondering if this is the standard way?

I've always known this to be the standard way. There is also this document which seems to support this.

Offline

#5 2013-08-24 17:10:12

pnelsonsr
Member
Registered: 2013-04-26
Posts: 6

Re: [Solved] The making startx start xfce

Great!

Offline

#6 2013-08-24 21:13:55

Sideburns
Member
From: Camarillo, CA
Registered: 2011-03-30
Posts: 296
Website

Re: [Solved] The making startx start xfce

Two comments.  First, you could always use startxfce4 directly, which is what I do on the rare occasions I have to start (or, more likely, try to start) X from a CLI.  Second, add this to ~/.bashrc:

alias startx=startxfce4

Of course, if you use a different shell, put it in the appropriate file.  Then, log out, log back in and Bjorn Stronginthearm's your uncle!


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

Board footer

Powered by FluxBB