Bug 465893 - Lookandfeelexplorer incorporates background image but in a not-working way
Summary: Lookandfeelexplorer incorporates background image but in a not-working way
Status: REPORTED
Alias: None
Product: Plasma SDK
Classification: Plasma
Component: General (show other bugs)
Version: 5.27.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 06:53 UTC by PK
Modified: 2024-09-08 20:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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")
}}