Bug 358239

Summary: switch to oxygen theme NO background wallpaper rendered
Product: [Plasma] plasmashell Reporter: Leslie Zhai <zhaixiang>
Component: Image & Slideshow wallpaper pluginsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, nate, notuxius, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Leslie Zhai 2016-01-20 03:00:42 UTC
Switched to oxygen theme, logout && login, NO background wallpaper rendered https://twitter.com/xiangzhai/status/689642085910114304

Reproducible: Always

Steps to Reproduce:
1. open systemsettings5, click Workspace theme, choose oxygen Look And Feel, click Apply
2. logout
3. login

or just edit ~/.config/plasma-org.kde.plasma.desktop-appletsrc
set Wallpaper's image is empty, for example:
[Containments][26][Wallpaper][org.kde.image][General]                           
Image=
Comment 1 Leslie Zhai 2016-01-20 03:17:31 UTC
when wallpaperPath is Empty or !exists, just fallback use isoft-artwork's, it is yet a workaround patch:

diff --git a/wallpapers/image/image.cpp b/wallpapers/image/image.cpp
index e18df00..8238c8c 100644
--- a/wallpapers/image/image.cpp
+++ b/wallpapers/image/image.cpp
@@ -108,7 +108,7 @@ QString Image::photosPath() const
 
 QString Image::wallpaperPath() const
 {
-    return m_wallpaperPath;
+    return QFile::exists(m_wallpaperPath) ? m_wallpaperPath : "/usr/share/isoft-artwork/background.png";
 }
 
 void Image::addUrl(const QString &url)
Comment 2 Alexander Mentyu 2018-02-06 14:22:21 UTC
Was able to reproduce in VirtualBox

Plasma: 5.11.5
Frameworks: 5.42.0
Qt: 5.10.0
Kernel: 4.14.15-1-ARCH
Comment 3 Patrick Silva 2018-02-06 20:04:52 UTC
cannot reproduce on Arch Linux, plasma 5.12 stable.
Comment 4 Nate Graham 2019-06-14 22:39:37 UTC
Me neither.