Temporary attempted fix for KDE
This commit is contained in:
parent
e75ef54a75
commit
de433f54b6
|
|
@ -48,7 +48,8 @@
|
||||||
static bool defColorExists;
|
static bool defColorExists;
|
||||||
static std::string optionImage, optionColor, optionImageStyle, optionColorStyle;
|
static std::string optionImage, optionColor, optionImageStyle, optionColorStyle;
|
||||||
// KDE settings
|
// KDE settings
|
||||||
static std::map<std::string, std::string> defPlugins, defPictures, defColors;
|
static std::map<std::string, std::string> defPlugins, defPictures, defColors, defModes;
|
||||||
|
static std::map<std::string, bool> defBlurs;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -116,6 +117,10 @@
|
||||||
defPictures[containment] = val;
|
defPictures[containment] = val;
|
||||||
} else if (key == "Color") {
|
} else if (key == "Color") {
|
||||||
defColors[containment] = val;
|
defColors[containment] = val;
|
||||||
|
} else if (key == "FillMode") {
|
||||||
|
defModes[containment] = val;
|
||||||
|
} else if (key == "Blur") {
|
||||||
|
defBlurs[containment] = (val == "true");
|
||||||
}
|
}
|
||||||
} else if (line.at(0) == '[') {
|
} else if (line.at(0) == '[') {
|
||||||
sections.clear();
|
sections.clear();
|
||||||
|
|
@ -318,13 +323,15 @@ end:
|
||||||
boost::replace_all(concatPath, "\\", "\\\\");
|
boost::replace_all(concatPath, "\\", "\\\\");
|
||||||
boost::replace_all(concatPath, "\"", "\\\"");
|
boost::replace_all(concatPath, "\"", "\\\"");
|
||||||
boost::replace_all(concatPath, "'", "\\x27");
|
boost::replace_all(concatPath, "'", "\\x27");
|
||||||
command << "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript '" <<
|
command << "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:" <<
|
||||||
"var allDesktops = desktops();" <<
|
"var allDesktops = desktops();" <<
|
||||||
"for (var i = 0, l = allDesktops.length; i < l; ++i) {" <<
|
"for (var i = 0, l = allDesktops.length; i < l; ++i) {" <<
|
||||||
"var d = allDesktops[i];" <<
|
"var d = allDesktops[i];" <<
|
||||||
"d.wallpaperPlugin = \"org.kde.image\";" <<
|
"d.wallpaperPlugin = \"org.kde.image\";" <<
|
||||||
"d.currentConfigGroup = [\"Wallpaper\", \"org.kde.image\", \"General\"];" <<
|
"d.currentConfigGroup = [\"Wallpaper\", \"org.kde.image\", \"General\"];" <<
|
||||||
"d.writeConfig(\"Image\", \"file://" << concatPath << "\");" <<
|
"d.writeConfig(\"Image\", \"file://" << concatPath << "\");" <<
|
||||||
|
"d.writeConfig(\"FillMode\", \"6\");" <<
|
||||||
|
"d.writeConfig(\"Blur\", false);" <<
|
||||||
"d.writeConfig(\"Color\", \"" <<
|
"d.writeConfig(\"Color\", \"" <<
|
||||||
std::to_string((color >> 16) & 0xFF) << "," <<
|
std::to_string((color >> 16) & 0xFF) << "," <<
|
||||||
std::to_string((color >> 8) & 0xFF) << "," <<
|
std::to_string((color >> 8) & 0xFF) << "," <<
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue