Skip to content

Commit 00d4f8f

Browse files
bwhacksyann-morin-1998
authored andcommitted
xconfig: Fix the filename for GUI settings
Currently the qconf program invoked by 'make xconfig' stores GUI settings in the file ~/.config/Unknown\ Organization.conf. This name is apparently generated by the QSettings class when no organisation or application name are specified. This is obviously not a sensible filename (nor does it seem sensible that these QSettings parameters are optional!). Pass the names 'kernel.org' and 'qconf', resuling in the filename ~/.config/kernel.org/qconf.conf. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 parent 503c823 commit 00d4f8f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎scripts/kconfig/qconf.cc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ static inline QString qgettext(const QString& str)
6969
return QString::fromLocal8Bit(gettext(str.latin1()));
7070
}
7171

72+
ConfigSettings::ConfigSettings()
73+
: QSettings("kernel.org", "qconf")
74+
{
75+
}
76+
7277
/**
7378
* Reads a list of integer values from the application settings.
7479
*/

‎scripts/kconfig/qconf.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ConfigMainWindow;
3232

3333
class ConfigSettings : public QSettings {
3434
public:
35+
ConfigSettings();
3536
Q3ValueList<int> readSizes(const QString& key, bool *ok);
3637
bool writeSizes(const QString& key, const Q3ValueList<int>& value);
3738
};

0 commit comments

Comments
 (0)