Bug 1099800 - [Build 20180629] LxQT does not start up session, but asks for WM
[Build 20180629] LxQT does not start up session, but asks for WM
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Michael Vetter
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2018-07-02 07:00 UTC by Dominique Leuenberger
Modified: 2019-01-31 16:10 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---

xdg-environment.sh change (559 bytes, patch)
2018-07-05 10:42 UTC, Michael Vetter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2018-07-02 07:00:57 UTC
## Observation

openQA test in scenario opensuse-Tumbleweed-NET-x86_64-otherDE_lxqt@64bit fails in

## Reproducible

Fails since (at least) Build [20180629](https://openqa.opensuse.org/tests/699706)

## Expected result

Last good: [20180628](https://openqa.opensuse.org/tests/698941) (or more recent)

## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?machine=64bit&test=otherDE_lxqt&flavor=NET&version=Tumbleweed&arch=x86_64&distri=opensuse)

The installation is performed atop of a minimalX installation, then further installing the LXQt pattern. Until recently, this resulted in a functional LXQt desktop.

Now, LXQt asks for a Window Managed upon first start
Comment 1 Dominique Leuenberger 2018-07-02 07:02:28 UTC
The change in snapshot 0629 was the upgrade of LXQt to version 0.13.0
Comment 2 Michael Vetter 2018-07-04 10:45:09 UTC
This probably is due to LXQt changing the default configuration paths from eg /etc/xdg/lxqt/lxqt.conf to /usr/share/lxqt.conf

AFAIK the binary should check both locations.

On my system where I upgraded from an old installatoin it probably just uses the old configuration files in /etc.

On the new install where the configs are only in /usr/share it seems not to detect them.

Have to find out how the looking for configs is done, maybe it's some XDG variable.
Comment 3 Michael Vetter 2018-07-05 10:42:01 UTC
Created attachment 776192 [details]
xdg-environment.sh change

It seems LXQt looks at XDG_CONFIG_DIRS/lxqt.
E.g.: XDG_CONFIG_DIRS/lxqt/lxqt.conf, XDG_CONFIG_DIRS/lxqt/panel.conf, XDG_CONFIG_DIRS/lxqt/session.conf

When adding /usr/share to XDG_CONFIG_DIRS in /etc/profile.d/xdg-environment.sh it works as expected.

However I'm not sure this is a good solution. So far /usr/share is only in XDG_DATA_DIRS.

Dominique, what do you think?
Comment 5 Dominique Leuenberger 2018-07-23 13:15:29 UTC
Discussed on IRC

short summary:
I don't think adding /usr/share to XDG_CONFIG_DIR is a good idea

LXQt should either install it's config files to /usr/share OR (even better) have the code look in XDG_CONFIG_DIRS and if no useful config found there, fall back to XDG_DATA_DIR (which would mean /usr/share is only used if the user did not create local config files in /etc)
Comment 6 Michael Vetter 2018-07-24 08:58:47 UTC
In an effort to make it easier for distributions to ship customized config files  in /etc, LXQt upstream decided to move their default config files to the new location.

However the way they looked for this was not default in distros as the environment variables were different or not set.

Simon Quigley (Ubuntu maintainer) proposed [1] a patch to make LXQt check all the directories in case a distribution hasnt them all in the environment variable so far. Patch was declined but I think actually it is a good idea to use it.

1: https://github.com/lxqt/lxqt-session/pull/126
Comment 7 Michael Vetter 2018-07-24 09:02:10 UTC
Comment 8 Swamp Workflow Management 2018-07-24 09:40:17 UTC
This is an autogenerated message for OBS integration:
This bug (1099800) was mentioned in
https://build.opensuse.org/request/show/624971 Factory / lxqt-session
Comment 9 Michael Vetter 2018-08-02 11:25:15 UTC
Issue seems to be solved: https://openqa.opensuse.org/tests/717419
Comment 10 Swamp Workflow Management 2018-10-23 17:00:16 UTC
This is an autogenerated message for OBS integration:
This bug (1099800) was mentioned in
https://build.opensuse.org/request/show/644002 Factory / lxqt-session
Comment 11 Swamp Workflow Management 2019-01-31 16:10:20 UTC
This is an autogenerated message for OBS integration:
This bug (1099800) was mentioned in
https://build.opensuse.org/request/show/670395 Factory / lxqt-session