Bug 464598

Summary: Show error message when theme specifies background file with an invalid relative path
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_sddmAssignee: David Edmundson <kde>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, nate, plasma-bugs-null
Priority: LO    
Version First Reported In: 5.27.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2023-01-21 16:20:31 UTC
Created attachment 155474 [details]
screenshot

Not all themes from KDE Store are affected.

STEPS TO REPRODUCE
1. open SDDM KCM
2. install Darkine and KDE-Story SDDM themes via 'Get new sddm themes...' button
3. click on the button to preview the background of the installed themes

OBSERVED RESULT
as seen in the attached screenshot, a popup shows up saying "No image selected'

EXPECTED RESULT
the popup should show the preview of the background

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-01-23 23:20:27 UTC
Can reproduce. I took a look and those themes are misconfigured, specifying a relative path for the background= keys in their theme.conf and theme.conf.user files. The paths need to be absolute, or else SDDM won't be able to see them.

We could show an error message to the user here alerting them to the fact that the theme is broken.