-
Notifications
You must be signed in to change notification settings - Fork 65
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
Command line option -c
changes default config file
#699
Comments
The default config file is touched but should not be changed. You can test by creating a copy of the default config, start QMS with a local config. After closing QMS you can make a diff of the saved file and the actual config. There should be no difference. |
Here is the diff:
|
It even get worth if i switch between v 1.17.1 and porting_qt6 often. The lines get longer.
The diff becomes:
|
I can't reproduce. If I do
The file in
does not change |
Hm, either i am doing something terribly wrong, or my system is somehow broken. But thanks for testing… |
Can't help myself, the file get changed. I've tried it now the other way around. Before this test i renamed the default config to have a clean one.
The default config is written and contains the section
Made a backup of the conf file named
After closing QMS the default config has changed, while my text editor says the file has changed just after starting QMS from porting_qt6:
Can you at least confirm the sentence |
Used QTCreator and debugged step by step. The default config will be written along those lines: qmapshack/src/qmapshack/units/IUnit.cpp Lines 606 to 607 in 2718e16
unfortunately i can't look into |
ok, with this changes the default config will not be written anymore:
|
Oops. What a bug. Nice catch! Can you provide a pull request please? |
Will do this evening. |
Do the fix on the based on the dev branch (create branch from dev in your repository ) When merged I will rebase the porting_qt6 branch. |
Describe the bug
When switching between v 1.17.1 and the porting_qt6 branch i have always issues with german umlauts which confuses QMS. See an example here: #648 (comment) .
So i wanted to use different config files for both versions. Looking at the command line options i found the
-c
or--config
option. But it seems starting QMS does not respect this option, because the default config file located at~/.config/QLandkarte/QMapShack.conf
will be changed anyway.What have you done to circle down the problem?
The problem seems to be that the default config file is read and saved when QMS v 1.17.1 is started.
To Reproduce
-c
, e.g.qmapshack -c ~/.config/qmpshack_v1_17.conf
In my case of german umlauts e.g. the entry
demPaths
in the default config file will change just by starting v 1.17.1. (diff):After closing QMS v 1.17.1 the config file given at the command line will be written.
Expected behavior
The commandline option should only touch the new config file given at the command line.
Screenshots
Attachments
Tracebacks
Desktop
Additional context
The text was updated successfully, but these errors were encountered: