Bug 391047

Summary: Desktop wallpaper is not configured in plasma-org.kde.desktop-appletsrc by default
Product: [Plasma] plasmashell Reporter: Deleted User <bharadwaj.raju777>
Component: Desktop ContainmentAssignee: Sebastian Kügler <sebas>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, plasma-bugs
Priority: NOR    
Version: 5.12.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Neon's default ~/.config/plasma-org.kde.desktop-appletsrc config file

Description Deleted User 2018-02-25 13:12:41 UTC
On a freshly installed Neon desktop (User edition), there is the default wallpaper on the desktop, but it does not seem to be configured in ~/.config/plasma-org.kde.desktop-applsetsrc.

That is, there is no:

  [Containments][8][Wallpaper][org.kde.image][General]
  Image=/path/to/plasma/default/wallpaper.png

section.

This breaks quite a few scripts which involve getting the current wallpaper from Plasma's configuration.

Upon changing the wallpaper to a random one, the relevant config section appears.
Comment 1 Deleted User 2018-02-25 13:14:53 UTC
Created attachment 110989 [details]
Neon's default ~/.config/plasma-org.kde.desktop-appletsrc config file
Comment 2 David Edmundson 2018-03-12 10:03:12 UTC
Sorry for the delayed reply. 

In what way does this "break scripts"?
Comment 3 Deleted User 2018-03-13 08:41:55 UTC
For example, I have an application: https://github.com/bharadwaj-raju/qoverview - that relies on such an entry being present in the appletsrc, so as to display the user's wallpaper as the application background.

You can see the bug filed on my project here: https://github.com/bharadwaj-raju/qOverview/issues/10
Comment 4 David Edmundson 2018-03-13 11:45:22 UTC
Parsing another project's config file is asking for trouble in a million ways. I'm not writing out default values for that. Sorry.

I'll try and extend the plasma scripting so you can retrieve it in a safer way.
Comment 5 Deleted User 2018-03-13 13:58:46 UTC
If Plasma's scripting engine can be modified to provide a sane way for getting/setting the wallpaper, it'll be excellent. Much better than my proposed fix of writing out default values.

Thank you.