You are not logged in.
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
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
Is .xinitrc executable?
Offline
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
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
hmmm...it wasnt executable, so i made it, but it still dosent work
Offline
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
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
Last edited by redefine (2008-08-03 00:40:24)
Offline
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
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