Bug 465893

Summary: Lookandfeelexplorer incorporates background image but in a not-working way
Product: [Plasma] Plasma SDK Reporter: PK <pieterkristensen>
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: antonis.tsiapaliokas, frankebay99
Priority: NOR    
Version First Reported In: 5.27.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description PK 2023-02-17 06:53:13 UTC
SUMMARY
***
In a self-made "global theme" plasma reverts to the default background image.
***


STEPS TO REPRODUCE
1. Create a plasma global theme
2. apply it. 

OBSERVED RESULT
wallpaper reverts to plasma default

EXPECTED RESULT
desired wallpaper is used

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-32-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Celeron® J4105 CPU @ 1.50GHz
Memory: 7.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600


ADDITIONAL INFORMATION
The file org.kde.plasma.desktop-layout.js of the global theme used to contain:

               },
                "/Wallpaper/org.kde.image/General": {
                    "Image": "/home/pieter/.local/share/wallpapers/DSCF5636.webp",
                    "SlidePaths": "/home/pieter/.local/share/wallpapers,/usr/share/wallpapers"
                }
            },
            "wallpaperPlugin": "org.kde.image"
But now it reads:

               },
                "/Wallpaper/org.kde.image/General": {
                    "Image": "/home/pieter/.local/share/wallpapers/DSCF5636.webp",
                    "PreviewImage": "",
                    "SlidePaths": "/home/pieter/.local/share/wallpapers,/usr/share/wallpapers"
                }
            },
            "wallpaperPlugin": "org.kde.image"

And it seems to me that this ""PreviewImage": ""," makes the background-image not work.
Comment 1 Frank 2023-02-18 01:45:25 UTC
I support this. We have identified the same issue since 5.27 has been released, although it was not present in kde-git before 5.27.
Comment 2 Frank 2023-02-18 01:49:13 UTC
The scripting we are using is:

var allDesktops = desktops();
print (allDesktops);
for (i=0;i<allDesktops.length;i++) {{
 d = allDesktops[i];
 d.wallpaperPlugin = "org.kde.image";
 d.currentConfigGroup = Array("Wallpaper",
                              "org.kde.image",
                              "General");
 d.writeConfig("Image", "file:///usr/share/wallpapers/garuda-wallpapers/Malefor.jpg")
}}