aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2020-04-03 10:09:23 -0400
committerGitHub <noreply@github.com>2020-04-03 10:09:23 -0400
commitdbb9ec322191788483af10a55dccd8eb9f7fda9f (patch)
treea925c405da577f37029bee6afd22a5aeda1377bb
parentUpdate README.md (diff)
downloadlumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.tar.gz
lumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.tar.bz2
lumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.zip
Update lthemeengine.cpp
Ensure we create the cursor directory before saving the cursor theme file
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
index 9ffe39f8..e2ce6943 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
@@ -194,6 +194,10 @@ bool lthemeengine::setCursorTheme(QString cursorname){
else{ info << "[Icon Theme]" << newval; } //entire section missing from file
}
//Now save the file
+ if( !QFile::exists(QDir::homePath()+"/.icons/default") ){
+ //Need to create the directory first
+ QDir().mkpath(QDir::homePath()+"/.icons/default")
+ }
QFile file(QDir::homePath()+"/.icons/default/index.theme");
bool ok = false;
if( file.open(QIODevice::WriteOnly | QIODevice::Truncate) ){
bgstack15