Bug 378222 - SDDM-kcm doesn't change the breeze sddm theme background if the new background image name is same as the old name
Summary: SDDM-kcm doesn't change the breeze sddm theme background if the new backgroun...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (other bugs)
Version First Reported In: 5.9.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 20:16 UTC by Rog131
Modified: 2025-07-15 18:20 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rog131 2017-03-28 20:16:40 UTC
How to reproduce:

1) Set the Breeze sddm theme background image (1.jpg) with the sddm kcm.
2) Try to change the Breeze sddm theme background image with the same name (1.jpg) with the sddm kcm.


Workaround:

As the 'clear image' action is not removing the image file from the  "/usr/share/sddm/themes/breeze/" the user needs to change the background image to another name (2.jpg) before the old name can be used again.
Comment 1 David Edmundson 2017-09-06 22:32:59 UTC

*** This bug has been marked as a duplicate of bug 381382 ***
Comment 2 David Edmundson 2017-09-06 22:33:38 UTC
sorry, that's not quite the same.
Comment 3 RaitaroH 2018-01-06 17:20:29 UTC
I did get around this by having the image for the SDDM a link instead. Keep in mind that you have to make the link in /usr/share/sddm/themes/breeze/ for this to work properly.
The gist of it: `ln -s 1.jpg /usr/share/sddm/themes/breeze/` 
After this you can change 1.jpg in any way you want and SDDM will listen to you.

For more info see here:
https://github.com/RaitaroH/KDE-Terminal-Wallpaper-Changer
Comment 5 Patrick Silva 2019-03-01 17:00:36 UTC
This bug persists in plasma 5.15.2.
I used files named "2.jpg" instead of "1.jpg".


Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 6 David Edmundson 2019-03-01 17:35:02 UTC
We check the file name every time to save uploading a new wallpaper if we've adjusted something unrelated like the cursors. Should be fixable if we track the dirty state client side.
Comment 7 sig 2021-04-14 16:46:25 UTC
Once a new SDDM theme is selected and rebooted, the correct theme shows while logging in. Once the laptop sleeps and is awakened it reverts back to the default SDDM theme.
Comment 8 Hannus 2023-08-16 15:51:42 UTC
This is still the case with KDE Plasma version 5.27.7.
The old background isn't deleted, therefore it isn't possible to set a new background when it has the same filename.
Comment 9 Oleksii Zolotarevskyi 2024-05-19 17:46:11 UTC
Still present in Plasma 6.0.4
Comment 10 Reuben Parfrey 2025-05-19 09:47:27 UTC
This issue still appears to be present on Plasma 6.4 beta
Comment 11 Nate Graham 2025-05-19 20:04:53 UTC
Can confirm.
Comment 12 Bug Janitor Service 2025-06-24 07:43:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/sddm-kcm/-/merge_requests/92
Comment 13 Nate Graham 2025-07-10 17:55:59 UTC
Git commit f817de71e1f5c5609de2e8681130144f19dfb24d by Nate Graham, on behalf of Amy Rose.
Committed on 10/07/2025 at 17:55.
Pushed by ngraham into branch 'master'.

Fix wallpaper not changing when files have same name

This commit updates the wallpaper changing logic to track whether the
user set a new wallpaper rather than comparing filenames.
FIXED-IN: 6.5.0

M  +6    -4    sddmauthhelper.cpp
M  +4    -2    src/sddmkcm.cpp
M  +15   -1    src/themesmodel.cpp
M  +2    -0    src/themesmodel.h

https://invent.kde.org/plasma/sddm-kcm/-/commit/f817de71e1f5c5609de2e8681130144f19dfb24d