lxqt-session
lxqt-session copied to clipboard
-c option not working for lxqt-session
I noticed that while testing a different config file under wayland, with
lxqt-session -c /home/stef/.config/lxqt-wayland/session.conf.
lxqt-config-sessionwrites to~/.config/lxqt/session.conflxqt-sessionprocess crashes becauselock_screen_before_power_actions=falseis true (default) even if none of the both config files have set "true" (see https://github.com/lxqt/lxqt-session/issues/457)
Expected Behavior
-c option works, write and read
Current Behavior
It doesn't
Steps to Reproduce (for bugs)
- Use a different location, restart session
- Change some setting and look at the timestamps or settings in both
session.conf
Context
System Information
- Distribution & Version: arch, git
Yes, there are three problems in the -c option:
- The function
SessionApplication::setConfigName()doesn't read its argument (such mistakes happen when a variable name is used for the argument name). - Even if the above-mentioned issue is fixed, the other parts of the code will ignore it. For example, the settings won't be written to the config file specified by the
-coption. - The environment variable
LXQT_SESSION_CONFIGset by that function will be seen byLXQt::PowerManager::PowerManager()as a config name, not a path.
We could just remove the -c option in `lxqt-session --help'.