diff --git a/app/src/handlers/systemhandler.cpp b/app/src/handlers/systemhandler.cpp index 74b03622c256ed2ee190a02aee51eb33beb7b412..b547e41cbe58ee53ce7da822f2e690478668536b 100644 --- a/app/src/handlers/systemhandler.cpp +++ b/app/src/handlers/systemhandler.cpp @@ -111,7 +111,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const } else if (desktop == "xfce") { applicableTypes << "wallpapers" - << "icons"; + << "icons" + << "cursors"; } return applicableTypes.contains(installType); @@ -165,6 +166,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c else if (installType == "icons") { return applyXfceIcon(themeName); } + else if (installType == "cursors") { + return applyXfceCursor(themeName); + } } } @@ -310,4 +314,9 @@ bool SystemHandler::applyXfceIcon(const QString &themeName) const { return setConfigWithXfconf("xsettings", "/Net/IconThemeName", themeName); } + +bool SystemHandler::applyXfceCursor(const QString &themeName) const +{ + return setConfigWithXfconf("xsettings", "/Gtk/CursorThemeName", themeName); +} #endif diff --git a/app/src/handlers/systemhandler.h b/app/src/handlers/systemhandler.h index 87b372a64932965e4a4e72905e02ab9962f0b475..a3922287f3ca79a9ebc568271ef24b35167ceaa6 100644 --- a/app/src/handlers/systemhandler.h +++ b/app/src/handlers/systemhandler.h @@ -40,5 +40,6 @@ private: bool setConfigWithXfconf(const QString &channel, const QString &property, const QString &value) const; bool applyXfceWallpaper(const QString &path) const; bool applyXfceIcon(const QString &themeName) const; + bool applyXfceCursor(const QString &themeName) const; #endif };