Bug 486268 - System Wallpapers installed via Fedora Repos don't show up in the Wallpaper Picker
Summary: System Wallpapers installed via Fedora Repos don't show up in the Wallpaper P...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: 6.0.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-28 21:02 UTC by Eric Reiner
Modified: 2024-04-28 22:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
metadata.json for f21 background (291 bytes, application/json)
2024-04-28 21:51 UTC, Dario Cambié
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Reiner 2024-04-28 21:02:21 UTC
SUMMARY
Fedora Repo wallpapers no longer show up in the wallpaper picker since upgrading to Plasma 6 (Fedora 40).
If I add a wallpaper from the directory individually by pointing to it's 1920x1080.jpg file, Plasma 6 realizes the "full suite" of a single image is present and grants it to the wallpaper picker but it refuses to look for all other images downloaded in the same parent folder.

I believe wallpapers from dnf are downloaded to usr/share/backgrounds but have aliases created where Plasma is looking: /usr/share/wallpapers. However, Plasma refuses to check these aliases unless I force it to for each individual image.

Plasma 5 (the previous version part of Fedora 39) automatically showed all wallpapers downloaded whether alias or not in the wallpaper picker.

STEPS TO REPRODUCE
1. Download any wallpaper set from Fedora Repos (f21-backgrounds-base, for example).
2. Go to the Wallpaper picker in Plasma.
3. The new wallpapers don't show up in the grid to be selected.

OBSERVED RESULT
The new wallpapers don't display.

EXPECTED RESULT
The new wallpapers should display.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
N/A
Comment 1 Dario Cambié 2024-04-28 21:51:35 UTC
Created attachment 168983 [details]
metadata.json for f21 background
Comment 2 Dario Cambié 2024-04-28 21:52:39 UTC
    It seems you are looking for `f21-backgrounds-kde` instead of `f21-backgrounds-base`. But that's not enough, you also need to add the attached `metadata.json` file in `/usr/share/wallpapers/F21/`.

    Long explanation:

    Indeed  `f21-backgrounds-base` installs files in `/usr/share/backgrounds/f21` (as per `$rpm -ql f21-backgrounds-base` output) and Plasma looks in `/usr/share/wallpapers/` where e.g. it correctly finds Fedora Forty's theme. So you were almost there, by checking which package installed the files in the wallpapers folder (e.g. by `rpm -qf /usr/share/wallpapers/F40/`) you'd get `f40-backgrounds-kde-40.2.0-1.fc40.noarch`. This suggests that, among the [https://packages.fedoraproject.org/pkgs/f21-backgrounds/](f21-backgrounds packages) you'll need the kde one.

    However, you'll find that installing the package alone is not enough. Notably, if you've upgraded multiple Fedora version on the same PC, only the backgrounds from F39 and F40 are shown. Digging a bit in the relevant backgrounds folders shows that only backgrounds from F39 onwards have the new metadata.json format, previous version used the metadata.desktop that seems to be ignored now.
Comment 3 Eric Reiner 2024-04-28 22:22:37 UTC
Ok I will just choose image files from previous distros instead that I wish to keep the backgrounds for.

Thank you!