FS#42440 - [lxsession] lxsession can not start event with blank ~/.config

Attached to Project: Community Packages
Opened by westmin (westminboy) - Saturday, 18 October 2014, 18:23 GMT
Last edited by Balló György (City-busz) - Wednesday, 26 November 2014, 02:56 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
update to lxsession 1:0.5.0-1, lxsession can not start event with blank ~/.config

Additional info:
* package version(s)
* config and/or log files etc.
lxsession 1:0.5.0-1
lxde-common 0.5.6-1
openbox 3.5.2-7

Steps to reproduce:
before the update, everything is ok.
why lxde packages allways update without a full compatibility testing! allways break this break that!
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 26 November 2014, 02:56 GMT
Reason for closing:  Upstream
Comment by Doug Newgard (Scimmia) - Sunday, 19 October 2014, 07:24 GMT
What to you mean it can't start? Without some kind of logs, there's nothing to do here.
Comment by Skupin Skupin (stefan.skupin) - Sunday, 19 October 2014, 08:34 GMT
Same problem here. After graphical login (LXDM) I end up with openbox only.
I think it may be due to the removal of lxpolkit by lxsession 1:0.5.0-1.
Which log would you need? E.g., /var/log/lxdm.log looks fine to me.
Comment by Stefano Cipriani (cip91) - Sunday, 19 October 2014, 10:49 GMT
It seems that it doesn't parse /etc/xdg/lxsession/LXDE/autostart , while it correctly parses ~/.config/lxsession/LXDE/autostart . Temporary workaround is to move every line from the former to the latter, but in case of multiple users it can be annoying.
Comment by Guillermo (gmenguez) - Sunday, 19 October 2014, 11:38 GMT
I was facing the same issue (only openbox and my autostart programs started) and your workaround has worked flawlessly Stefano, thanks.

This is said to be the default and right behavior in their wiki (http://wiki.lxde.org/en/LXSession#autostart_configuration_file) so I don't think we will see "a fix" in the near future:

Commands globally executed are stored in the /etc/xdg/lxsession/<profile>/autostart file, and in addition, other commands can be locally specified in the ~/.config/lxsession/<profile>/autostart file. If both files are present, only the entries in the local file will be executed.
Comment by westmin (westminboy) - Sunday, 19 October 2014, 14:29 GMT
Sorry for my complaining.
I do not install any login manager, just startx to init X to Lxde. And I do not know which file contains logs.
Before the updating, I have the file ~/.config/lxsession/LXDE/autostart, and with a customise lxpanel bar. Just after the updating and startx to X, there is a black screen and can right click to open Openbox menu, that is the Lxsession is not started, but openbox works fine. After a tty2 login to check, the autostart scripts work fine too.
So I backup and delete all ~/.config/lx* setting files, the issue is the same.
Comment by westmin (westminboy) - Tuesday, 21 October 2014, 22:48 GMT
less ~/.cache/lxsession/LXDE/run.log
   run.log (6.8 KiB)
Comment by Balló György (City-busz) - Wednesday, 22 October 2014, 00:25 GMT
I don't see anything strange in your log. Please contact with upstream:
https://sourceforge.net/p/lxde/bugs/
Comment by Alois Janicek (AloisJanicek) - Wednesday, 22 October 2014, 03:35 GMT
I (half) confirm this issue.
It looks like there are incompatible lxsession changes between version 0.4.x and 0.5.x.
I installed my LXDE 3 weeks ago, didn't manually edit ~/.config/lxsession/LXDE/desktop.conf (it was created automatically by lxsession after first login) and it worked. But as came lxsession 0.5, I was unable to start automatically lxsession with lxpanel and pcmanfm (as desktop manager) with their LXDE profiles.
So solution is explicitly define all important lxsession parameters in desktop.conf. Lxsession will no longer gues same previous values and will fallback to "default" profiles of lxpanel and pcmanfm instead of "LXDE" profiles which they were default for lxsession 0.4.
For explanation and working desktop.conf inspiration you can look at my imgur post: http://imgur.com/6FkxZs1
It's sad that no one catch this when lxsession 0.5 was in testing, and it looks like totally upstream issue to me too.
Comment by westmin (westminboy) - Wednesday, 22 October 2014, 12:24 GMT
Thx @AloisJanicek, it works.
@City-busz, cann't you install archlinux with lxde group in virtualbox to replay this issue?
Comment by nobody (nobody) - Wednesday, 05 November 2014, 07:51 GMT
The breaking change from 0.4.x to 0.5.x appears to be as gmenguez stated: If both the global and local autostart files exist, only the local file is executed. Previously, both files were executed.

The problem of the desktop manager and panel not starting was fixed for me when I copied the 3 lines from /etc/xdg/lxsession/LXDE/autostart to ~/.config/lxsession/LXDE/autostart. So it looks like there are two solutions to the problem: AloisJanicek's solution and this one (also done by cip91).
Comment by Balló György (City-busz) - Saturday, 22 November 2014, 04:21 GMT
For the original report: I can't reproduce the problem on a fresh install, so please report it to the upstream developers:
https://sourceforge.net/p/lxde/bugs/

For others: I know that LXDE does not handles updates very well, but you can ask upstream to implement something to make updates easier. Just submit an upstream feature request:
https://sourceforge.net/p/lxde/feature-requests/

Loading...