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

Make configuration handling on non-windows multi-level (Qt default ini) #11

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

petterreinholdtsen
Copy link
Contributor

The code currently uses two different configuration files, the Qt
native one to store the directory used in QPersistantFileDialog and
DInsightReportWindow, and a INI file named insight.conf for everything
else. The first use is kept unchanged, while the latter is changed
for non-Windows builds. Windows configuration handling is kept
unchanged to stay compatible with the already released version. On
non-Windows platforms the code is changed to look in /usr/share/,
/etc/ and ~/.config/ for insight.ini instead of looking for
insight.conf only in the current working directory.

This bring the program more in line with Linux Filesystem Hierarcy
standard on Unix.

Note, the Qt QSettings documentation state that the native file to
look for is named insight.conf, but at least on Linux the file used by
QPersistantFileDialog and DInsightReportWindow is insightrc. The file
used by DInsightConfig is insight.ini after this change, thus keeping
the two configuration systems in two separeate files.

This change partly addresses issue #9.

The code currently uses two different configuration files, the Qt
native one to store the directory used in QPersistantFileDialog and
DInsightReportWindow, and a INI file named insight.conf for everything
else.  The first use is kept unchanged, while the latter is changed
for non-Windows builds.  Windows configuration handling is kept
unchanged to stay compatible with the already released version.  On
non-Windows platforms the code is changed to look in /usr/share/,
/etc/ and ~/.config/ for insight.ini instead of looking for
insight.conf only in the current working directory.

This bring the program more in line with Linux Filesystem Hierarcy
standard on Unix.

Note, the Qt QSettings documentation state that the native file to
look for is named insight.conf, but at least on Linux the file used by
QPersistantFileDialog and DInsightReportWindow is insightrc.  The file
used by DInsightConfig is insight.ini after this change, thus keeping
the two configuration systems in two separeate files.

This change partly addresses issue piql#9.
@oleliabo oleliabo merged commit fdd1840 into piql:master Nov 13, 2019
@petterreinholdtsen petterreinholdtsen deleted the multilevel-config branch November 13, 2019 09:15
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

Successfully merging this pull request may close these issues.

2 participants