diff options
Diffstat (limited to 'development/cppcheck/fix-default-settings.diff')
-rw-r--r-- | development/cppcheck/fix-default-settings.diff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/development/cppcheck/fix-default-settings.diff b/development/cppcheck/fix-default-settings.diff new file mode 100644 index 0000000000000..1fa730b543bbd --- /dev/null +++ b/development/cppcheck/fix-default-settings.diff @@ -0,0 +1,30 @@ +Description: Set configuration directory and python version +Author: Joachim Reichel <reichel@debian.org> + +Index: cppcheck/gui/main.cpp +=================================================================== +--- cppcheck.orig/gui/main.cpp ++++ cppcheck/gui/main.cpp +@@ -55,6 +55,12 @@ int main(int argc, char *argv[]) + + QSettings* settings = new QSettings("Cppcheck", "Cppcheck-GUI", &app); + ++ // Set some default settings ++ if( settings->value("DATADIR", QString()).toString().isEmpty()) ++ settings->setValue("DATADIR", FILESDIR); ++ if( settings->value(SETTINGS_PYTHON_PATH, QString()).toString().isEmpty()) ++ settings->setValue(SETTINGS_PYTHON_PATH, QString("/usr/bin/python3")); ++ + // Set data dir.. + foreach (const QString arg, app.arguments()) { + if (arg.startsWith("--data-dir=")) { +Index: cppcheck/htmlreport/cppcheck-htmlreport +=================================================================== +--- cppcheck.orig/htmlreport/cppcheck-htmlreport ++++ cppcheck/htmlreport/cppcheck-htmlreport +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + from __future__ import unicode_literals + |