diff --git a/debian/changelog b/debian/changelog index 2c90ad0..530ac9a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lxqt-config (0.13.0-0ubuntu4) cosmic; urgency=medium + + * Make a path for GTK settings if it does not exist. + + -- Walter Lapchynski Mon, 03 Sep 2018 07:43:25 +0000 + lxqt-config (0.13.0-0ubuntu3) cosmic; urgency=medium * Run wrap-and-sort. diff --git a/debian/patches/mkpath-for-null-gtk-settings.patch b/debian/patches/mkpath-for-null-gtk-settings.patch new file mode 100644 index 0000000..1ea9e42 --- /dev/null +++ b/debian/patches/mkpath-for-null-gtk-settings.patch @@ -0,0 +1,18 @@ +Description: Make a path for GTK settings if it does not exist. +Author: P.L. Lucas +Bug: https://github.com/lxqt/lxqt/issues/1548 +Applied-Upstream: https://github.com/lxqt/lxqt-config/commit/5fe0f9288e432a669686af14657b7f508eefb77e +Last-Update: 2018-09-03 +--- a/lxqt-config-appearance/configothertoolkits.cpp ++++ b/lxqt-config-appearance/configothertoolkits.cpp +@@ -212,6 +212,10 @@ void ConfigOtherToolKits::writeConfig(QS + path = _get_config_path(path); + + QFile file(path); ++ if(! file.exists()) { ++ QFileInfo fileInfo(file); ++ QDir::home().mkpath(fileInfo.path()); ++ } + if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { + return; + } diff --git a/debian/patches/series b/debian/patches/series index be75ac7..5098590 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ gtk-appearance-settings.patch +mkpath-for-null-gtk-settings.patch