Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-c option not working for lxqt-session #467

Open
stefonarch opened this issue Mar 12, 2023 · 2 comments
Open

-c option not working for lxqt-session #467

stefonarch opened this issue Mar 12, 2023 · 2 comments

Comments

@stefonarch
Copy link
Member

I noticed that while testing a different config file under wayland, with
lxqt-session -c /home/stef/.config/lxqt-wayland/session.conf.

Expected Behavior

-c option works, write and read

Current Behavior

It doesn't

Steps to Reproduce (for bugs)
  1. Use a different location, restart session
  2. Change some setting and look at the timestamps or settings in both session.conf
Context
System Information
  • Distribution & Version: arch, git
@tsujan
Copy link
Member

tsujan commented Mar 12, 2023

Yes, there are three problems in the -c option:

  1. The function SessionApplication::setConfigName() doesn't read its argument (such mistakes happen when a variable name is used for the argument name).
  2. 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 -c option.
  3. The environment variable LXQT_SESSION_CONFIG set by that function will be seen by LXQt::PowerManager::PowerManager() as a config name, not a path.

@stefonarch
Copy link
Member Author

We could just remove the -c option in `lxqt-session --help'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants