You are not logged in.

#1 2008-08-01 03:36:07

redefine
Member
Registered: 2008-07-17
Posts: 35

[solved] xfce not starting with x

just trying to switch from gnome to xfce. and i've got most of it working great. but i cant actually get xfce to start automatically

i've changed from gdm to slim and changed that in demons in /etc/rc.conf and i've changed .xinitrc and commented out 'exec gnome-session', and added in 'exec startxfce4'. slim starts great, and i can login from that, but for some reason, xfce wont start when x starts, i have to manually start it by typing startxfce4 at the terminal that comes up.

i followed the setup guide in the wiki under xfce.

does anyone know whats causing this?

Last edited by redefine (2008-08-03 00:40:49)

Offline

#2 2008-08-01 04:01:14

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: [solved] xfce not starting with x

well first try to use slim by editing the /etc/inittab instead of using a daemon. also. I would start xfce by using the xfce4-session command.


some tips that might help.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#3 2008-08-01 04:23:08

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [solved] xfce not starting with x

Is .xinitrc executable?

Offline

#4 2008-08-01 04:24:05

redefine
Member
Registered: 2008-07-17
Posts: 35

Re: [solved] xfce not starting with x

ok, thanks. i'll try it out

well..using xfce4-session didnt work. i still had to start xfce manually.

the problem isnt with slim, the problem is not starting xfce after i have logged in. i dont know whats wrong, cause it is starting the xterm which is also in .xinitrc, but it just wont start xfce

Last edited by redefine (2008-08-01 04:32:47)

Offline

#5 2008-08-01 05:05:34

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: [solved] xfce not starting with x

I would say the same with Gullible Jones. Slim works fine with me starting x.

Could you check to see if the file is an executable with "ls -lF .xinitrc" to see if there is an "*" at the end of the file name.

If there isn't one, use:

chmod +x .xinitrc

Otherwise I hope this helps.

EDIT: Oh my bad, you don't want to do the '-x'

Last edited by Acecero (2008-08-01 06:00:11)

Offline

#6 2008-08-02 06:43:00

redefine
Member
Registered: 2008-07-17
Posts: 35

Re: [solved] xfce not starting with x

hmmm...it wasnt executable, so i made it, but it still dosent work

Offline

#7 2008-08-02 08:36:11

hBd
Member
From: Romania - Cluj Napoca
Registered: 2008-06-08
Posts: 241
Website

Re: [solved] xfce not starting with x

put "exec xfce4-session" in .xinitrc and type startx at commandline. and not need to make .xinitrc executable, it's just a config file for startx.
edit: just one session need to be in .xinitrc, i mean that not gnome-session, openbox-session just the xfce. put # on the begining to comment everything else.
show us your xinitrc file.

Last edited by hBd (2008-08-02 08:39:22)

Offline

#8 2008-08-03 00:24:17

redefine
Member
Registered: 2008-07-17
Posts: 35

Re: [solved] xfce not starting with x

heres my .xinitrc.

its exactly the same as i had working with gnome, except i commented out exec gnome-session and added exec xfce4-session

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
exec xterm
exec xfce4-session
# exec gnome-session
# exec startkde
# exec startxfce4
# exec icewm
# exec openbox
# exec blackbox
# exec fluxbox
# exec ratpoison
# exec dwm
# ... or any other WM of your choosing ...

EDIT...ok i fixed it, dont worry.

i removed 'exec xterm' from .xinitrc, and i changed  'xfce' to 'xfce4-session' in /etc/slim.conf where you choose the wm. yay smile

Last edited by redefine (2008-08-03 00:40:24)

Offline

#9 2008-08-07 02:51:55

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: [solved] xfce not starting with x

just FYI -  The problem you were running into was that the script was running, launching xterm and hanging there. It would then die when you killed that xterm. The reason for this was the 'exec' line - there should only be one instance of 'exec' in your .xinitrc. It can contain multiple commands connected with the '&' symbol, but whenever one of those processes dies - X goes with it. A working example of your .xinitrc posted above would have been:

#!/bin/sh
#
#~/.xinitrc
exec xfce4-session &
xterm

I hope this cleared a few things up, and makes the reason for this clearer for those who read this post later.


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#10 2009-01-24 15:24:09

salo9000
Member
Registered: 2009-01-24
Posts: 7

Re: [solved] xfce not starting with x

hi. i got a very similar problem yesterday.

i tried some solutions that worked for others without success.

my solution was to to remove son config files related to gtk:

$ rm ~/.gtk*

great you had your problem fixed.

salo9000

Last edited by salo9000 (2009-01-24 15:25:29)

Offline

Board footer

Powered by FluxBB