Red Hat Bugzilla – Bug 198085
xfce4 session causes session to exit!
Last modified: 2007-11-30 17:11:37 EST
Description of problem:
If I attempt to login using an XFCE4 session when the xfce4-session package is
installed, I get that gnome/gtk box popping up which says,
Your session lasted less than 10 seconds...
Click to view your ~/.xsession-errors file
The contents of this file is:
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u
/var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l ":0" "james"
/usr/bin/startxfce4: X server already running on display :0
xfce4-session: Unable to load failsafe session, exiting. Please check
the value of the environment variable XDG_CONFIG_DIRS
and make sure that it includes the following path:
Indeed, I have no XD* variables set in my environment.
Version-Release number of selected component (if applicable):
# rpm -qa|egrep -i "^xf"|sort
Steps to Reproduce:
1. yum -y install xfce4-session
2. Login using XFCE4 session
The gtk/gnome error box pops up.
I'd expect to get logged into XFCE4!
"yum -y remove xfce4-session" solves the problem (I can then login to XFCE4 OK
(except that the "Quit" menu option doesn't work (see bug 198083)).
Thanks for the bug report.
Can you attach the contents of your
Hmm. I don't appear to have one:
$ cat ~/.config/xfce4-session/xfce4-session.rc
cat: /home/james/.config/xfce4-session/xfce4-session.rc: No such file or directory
$ find .config/
I've tried logging out of xfce4 and back in again, but it doesn't appear to get
However, I have got a system-wide one:
# ls -l /etc/xdg/xfce4-session/xfce4-session.rc
-rw-r--r-- 1 root root 1637 Feb 17 01:25 /etc/xdg/xfce4-session/xfce4-session.rc
... but it hasn't been changed:
# rpm -qV xfce4-session
# echo $?
Can you attach a list of files under ~/.cache as well? In particular are
there any ~/.cache/sessions/ files?
Also, do you have the gtk-qt-engine package installed?
$ find .cache/
$ rpm -q gtk-qt-engine
package gtk-qt-engine is not installed
Very strange. The failsafe session should be the one it runs the first time you
run xfce4-session, and it should create a .rc file for you on that first run.
Can you try this:
install the strace package. 'yum -y install strace'
Edit or create a ~/.Xclients file with:
exec /usr/bin/strace -f -o /tmp/trace.out /usr/bin/startxfce4
This will generate a very large trace file in /tmp/trace.out.
If you could put that up somewhere where I can download it, or if it's small
enough to allow add it as an attachement here, that would be great.
Somehow xfce4-session isn't finding your xfce4-session.rc file or one of the
failsafe programs in it.
Created attachment 132423 [details]
gzip compressed output of "exec /usr/bin/strace -f -o /tmp/trace.out /usr/bin/startxfce4"
gzip compressed output of "exec /usr/bin/strace -f -o /tmp/trace.out
Unfortunately, xfce4 never loaded when I ran it using strace. I got a blue
screen and a cursor, but nothing else.
Excellent. Thanks for the trace. Still looking it over.
One thing I see that would be good to know:
Can you past in the output of 'ls -la ~/.ICE*'
I will look over the trace some more and see if I can find anything that points
to the problem.
Thanks for getting me that trace. I see one thing that really stands out:
4426 stat64("/etc/xdg/xfce4-session/xfce4-session.rc", 0xbfc034fc) = -1 EACCES
That should be a file in the xfce4-session package. (Which you verified above
was verified in the rpm database).
Does this file exist?
Can you read it as your regular user?
Are there incorrect permissions on /etc or /etc/xdg/ or /etc/xdg/xfce4-session?
Are you using selinux?
I see one bug in the xfce4-session package here in that it doesn't appear to
own the /etc/xdg/xfce4-session directory...
Hey James: Any chance to answer the questions from comments #7 and #8 ?
That might track down the solution. Thanks.
Hey James. You still seeing this issue?
Any further news?
Hey James. I haven't heard anything back from you on this bug in a while...
If I don't hear anything in the next few days, I will go ahead and close up
ok. I am going to close this bug now. If you get a chance to provide the info
above or can otherwise duplicate it, please feel free to re-open this bug, or
create a new one and we can try and get things solved.