Bug 418949

Summary: plymouth-theme-breeze should have a background/wallpaper option
Product: [Applications] systemsettings Reporter: Walther Pelser <w.pelser>
Component: kcm_plymouthAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: nate, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of systemsettings5/start and shutdown/startscreen

Description Walther Pelser 2020-03-17 06:41:51 UTC
SUMMARY
On linux plymouth is started during boot in-between grub2 and sddm. grub2 comes with a background, which could be changed by YAST, sddm can be customized by systemsettings5, which could change the background too. Only plymouth has no option. It seems to be nice and necessary, to have a backround/wallpaper ability  too. The same background/wallpaper during all the steps of the boot process would be  preferable.
This is an example for this issue with an other distro:
https://www.linuxliteos.com/forums/desktop-customization/background-image-when-starting-'the-feather'-4739/?PHPSESSID=a0lcqpabjrb2uuiuvb5utg7vo5

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE-Tumbleweed
(available in About System)
KDE Plasma Version: 5.67.0
KDE Frameworks Version: 5.18.3
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Example:
It would be easy to add a code like this, to solve this issue. This would not change the behavior of plymouth-theme-breeze, but it creates only an option.

--- a/breeze/breeze.script.cmake
+++ b/breeze/breeze.script.cmake
@@ -342,4 +342,20 @@ enable background image possibility
-// ------------------------------ Background -------------------------------- //
-Window.ApplyBackgroundColors();
-global.backgroundApplied = false;
-
+// ------------------------------ Background -------------------------------- //
+// to enable a BackgroundImage instead of BackgroundColor: copy a file with the name "background.png" into the images folder. If "global.backgroundApplied = true", background.png should be removed //
+if ("images/background.png")
+{
+     wallpaper_image = Image("images/background.png");
+     screen_width = Window.GetWidth();
+     screen_height = Window.GetHeight();
+     resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
+     wallpaper_sprite = Sprite(resized_wallpaper_image);
+     wallpaper_sprite.SetZ(-100);
+
+     Window.ApplyBackground();
+     global.backgroundApplied = false;
+}
+else 
+{ 
+     Window.ApplyBackgroundColor();
+     global.backgroundApplied = false;
+}
+
Comment 1 Harald Sitter 2020-03-24 13:23:19 UTC
That'd only make sense if people can actually set it via the KCM.
Comment 2 Walther Pelser 2020-03-25 13:52:46 UTC
Created attachment 127001 [details]
screenshot of systemsettings5/start and shutdown/startscreen

In the left row there are two nearly identical startscreen items, only with different widgets, but without verbal explanation. There should be added: (plymouth), as it could be seen for sddm.
Comment 3 Walther Pelser 2020-03-25 16:23:21 UTC
Addition to comment #2:
/usr/share/kservices5/kcm_plymouth.desktop should have the same names mentioned in /usr/share/kpackage/kcms/kcm_plymouth/metadata.json. This would solve the issue in comment #2
Comment 4 Walther Pelser 2020-03-25 16:49:43 UTC
Addition to comment #2:
The German translation in kcm_plymouth.desktop "Name[de]=Startbildschirm" misses the item "Boot".
Comment 5 Nate Graham 2022-03-22 15:09:51 UTC
This might make sense on the basis of ending the profusion of splash screens on https://store.kde.org/browse?cat=488& that are just the default one with a different picture. That's low-effort content, but currently there's no real other way to get a splash screen with a different image on it.

And yes, we'd also need a way to set it from the KCM.
Comment 6 Harald Sitter 2022-03-24 09:22:46 UTC
The problem is more that each theme is free to use a different path. Supporting a wallpaper in breeze isn't really the problem there, it's all the other theme scripts - and that makes supporting it in the KCM a headache that needs a plan to deal with.
Comment 7 Nate Graham 2022-03-29 00:29:55 UTC
It, it would have to be a feature of the Breeze splash screen itself I guess, which we show a config UI for in the KCM.
Comment 8 Harald Sitter 2022-03-29 10:10:49 UTC
Fine with me so long as we are ok with that limitation. That said, Walther, if you make an MR on invent.kde.org I'll gladly help get the changes landed :)