Bug 358239 - switch to oxygen theme NO background wallpaper rendered
Summary: switch to oxygen theme NO background wallpaper rendered
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-20 03:00 UTC by Leslie Zhai
Modified: 2019-06-14 22:39 UTC (History)
4 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 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.