View previous topic :: View next topic |
Author |
Message |
bjdacre n00b


Joined: 25 Nov 2014 Posts: 26 Location: Whangarei, NZ
|
Posted: Wed Feb 18, 2015 2:59 am Post subject: Lightdm fails to start Xfce on login [Solved] |
|
|
Gentlepeople,
I have spent literally days trying to figure out what is wrong here. The following is what I think is relevant:
Code: |
cat .xsession-errors
/etc/lightdm/Xsession: line 75: /usr/bin/dbus-launch --exit-with-session startxfce4: No such file or directory
which dbus-launch
/usr/bin/dbus-launch
which startxfce
/usr/bin/startxfce4
|
As you can see, apparently the Xsession startup script, /etc/lightdm/Xsession, executes a command which cannot be found. Since you can see both commands are there and one of them is referenced with an explicit absolute pathname, it is probably failing to find the startxfce4 command.
But why? /usr/bin/ is in every path that I can find. When I ctrl-alt-f1 to the console and login, kill xdm and run that exact command, it works. Furthermore, I am confident that lightdm successfully logs me in, but fails to find the command for 2 reasons;
(1) I looked at the consolekit history file, /var/log/ConsoleKit/history, and that is what I get from the entries there.
(2) I also put an echo to $HOME with the values of a number of variables just before it runs the failed command, and it appeared in my home directory, not root's.
I have two other computers running lightdm -> xfce. Both log me in and start xfce. Neither have been particularly helpful in solving this issue. For some reason, the desktop, the first one I did and the most manual, appears to start X from /etc/X11/Sessions/Xsession, not the lightdm version. To get this working I created a link from $HOME/Xclients to /etc/X11/Sessions/Xfce4.
The second computer, an older laptop, does appear to start xfce as I would expect. I used an earlier version of my evolving installation scripts for that one.
Anyway, I have spent ages trying to understand how X starts and now my head hurts.
I really hope someone can help me with this one.
Brendan
Last edited by bjdacre on Wed Feb 25, 2015 2:57 am; edited 1 time in total |
|
Back to top |
|
 |
bjdacre n00b


Joined: 25 Nov 2014 Posts: 26 Location: Whangarei, NZ
|
Posted: Wed Feb 25, 2015 2:57 am Post subject: |
|
|
OK,
I decided to re-emerge lightdm to see if this would help. I did this and it generated a new Xsession file. I diffed the new against the old before replacing;
Code: |
diff /etc/lightdm/Xsession /etc/lightdm/Xsession.new
74c74
< exec "$command"
---
> exec $command
|
I was surprised they were different since I hadn't made changes myself since the original emerge. Secondly, looking at the difference, I didn't think it should make a difference.
Nevertheless, I moved the new to replace the old and restarted, and voila, it worked, Xfce started after logging in to lightdm. I decided to make sure this was the relevant change and added the quotes back, and Xfce failed to start. Took the quotes out again and it worked, so there it is.
Brendan |
|
Back to top |
|
 |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1610 Location: PB, Germany
|
Posted: Wed Feb 25, 2015 4:01 pm Post subject: |
|
|
Sounds like this could be related to my issue... I'm going to try your hint. _________________ ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme |
|
Back to top |
|
 |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1610 Location: PB, Germany
|
Posted: Fri Feb 27, 2015 4:29 pm Post subject: |
|
|
No, this does not help here. Re-emerging lightdm does not add those quotes here, and adding them manually does not solve the issue. _________________ ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|