From dbb9ec322191788483af10a55dccd8eb9f7fda9f Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 3 Apr 2020 10:09:23 -0400 Subject: Update lthemeengine.cpp Ensure we create the cursor directory before saving the cursor theme file --- src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) ){ -- cgit