Bug 391047 - Desktop wallpaper is not configured in plasma-org.kde.desktop-appletsrc by default
Summary: Desktop wallpaper is not configured in plasma-org.kde.desktop-appletsrc by de...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 5.12.0
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 13:12 UTC by Deleted User
Modified: 2018-03-13 13:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Neon's default ~/.config/plasma-org.kde.desktop-appletsrc config file (3.82 KB, text/plain)
2018-02-25 13:14 UTC, Deleted User
Details

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