From 00fee3486ad2c21c58f765eabe9c983c26c0d720 Mon Sep 17 00:00:00 2001 From: Dan Leinir Turthra Jensen Date: Fri, 5 Feb 2021 21:45:14 +0000 Subject: [PATCH] Fix the wallpaper knsrc use commands Prior to this change, the use commands would fail if the wallpaper download payload had a space in the filename (caused, paradoxically, by the method used to ensure the payload is escaped for shell use). --- wallpapers/image/wallpaper-mobile.knsrc.cmake | 2 +- wallpapers/image/wallpaper.knsrc.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wallpapers/image/wallpaper-mobile.knsrc.cmake b/wallpapers/image/wallpaper-mobile.knsrc.cmake index 48fbad7ee..4ab1676f2 100644 --- a/wallpapers/image/wallpaper-mobile.knsrc.cmake +++ b/wallpapers/image/wallpaper-mobile.knsrc.cmake @@ -46,4 +46,4 @@ Categories=Plamo Wallpapers TargetDir=wallpapers Uncompress=subdir-archive -AdoptionCommand=@QtBinariesDir@/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'for (var i in desktops()) { d = desktops()[i]; d.wallpaperPlugin = "org.kde.image"; d.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"]; d.writeConfig("Image", "%f") }' +AdoptionCommand=@QtBinariesDir@/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "for (var i in desktops()) { d = desktops()[i]; d.wallpaperPlugin = 'org.kde.image'; d.currentConfigGroup = ['Wallpaper', 'org.kde.image', 'General']; d.writeConfig('Image', %f) }" diff --git a/wallpapers/image/wallpaper.knsrc.cmake b/wallpapers/image/wallpaper.knsrc.cmake index b13235a75..19863c449 100644 --- a/wallpapers/image/wallpaper.knsrc.cmake +++ b/wallpapers/image/wallpaper.knsrc.cmake @@ -46,4 +46,4 @@ Categories=KDE Wallpaper 800x600,KDE Wallpaper 1024x768,KDE Wallpaper 1280x1024, TargetDir=wallpapers Uncompress=subdir-archive -AdoptionCommand=@QtBinariesDir@/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'for (var i in desktops()) { d = desktops()[i]; d.wallpaperPlugin = "org.kde.image"; d.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"]; d.writeConfig("Image", "%f") }' +AdoptionCommand=@QtBinariesDir@/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "for (var i in desktops()) { d = desktops()[i]; d.wallpaperPlugin = 'org.kde.image'; d.currentConfigGroup = ['Wallpaper', 'org.kde.image', 'General']; d.writeConfig('Image', %f) }"