Created attachment 161484 [details] plasma wallpaper downloader bug SUMMARY *** When I want to download a new wallpaper from the "Plasma Desktop Settings", the downloader always warns me with something like following: "This file already exists in the disk (this is probably due to a failed download attempt previously). If continue it will be overwritten. Do you want to overwrite to this file? '/home/ismail/.local/share/wallpapers/01.jpg' " Then I renamed the file from "01.jpg" to something else. This time the download was successful but with the same name "01.jpg". This must be a bug because the downloader always download with "01.jpg" regardless the name of the file. See the screenshot in the attachment. It is in Turkish but should give you an idea. *** STEPS TO REPRODUCE 1. Open plasma desktop settings 2. Hit the Download New Wallpapers button 3. Download a wallpaper 4. In case you don't get the warning download another one and you will get it OBSERVED RESULT Downloads wallpapers always with the same name which is "01.jpg". EXPECTED RESULT Downloads wallpapers with their own name. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20230902 KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.109.0 Qt Version: 5.15.10 Kernel Version: 6.4.12-1-default (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i3-8100 CPU @ 3.60GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 ADDITIONAL INFORMATION
I have currently discovered that all those wallpapers that named as 01.jpg comes from specific users in KDE store. Looks like this is not a software bug. Check out the wallpapers that published by the following users in KDE store: https://store.kde.org/u/sadmir - example 01.jpg image of sadmir -> https://store.kde.org/p/2082394 https://store.kde.org/u/senmr - example 01.jpg image of senmr -> https://store.kde.org/p/2082285 https://store.kde.org/u/lerth - example 01.jpg image of lerth -> https://store.kde.org/p/2082236 These three have bombarded the KDE store with garbage all with the same name "01.jpg"! What do you think to do regarding this matter guys? Do you keep letting them to fill KDE store with their garbage? Well I'm not insulting their artwork actually. But naming all the files with the same name looks a bad intention to me.
The content there is actually not controlled or moderated by KDE; please report upstream using the "report" functionality on the website. Thanks!
I think while it's an annoying issue and many wallpapers are likely uploaded as a number.jpg etc. I think we could do some relatively easy downstream changes to make this better for users. I'm thinking something along the lines of this: - When the user clicks install in GNHS it calls for instance this <a href="https://api.pling.com/ocs/v1/content/download/1585748/1?format=json">https://api.pling.com/ocs/v1/content/download/1585748/1?format=json</a> which asks the Pling API server for a download link for product ID 1585748 - When GNHS attempts to download it, it could prepend the product ID, which would make a wallpaper like 01.jpg turn into 1585748-01.jpg, making it completely unique on the filesystem. Thoughts?
Yeah, that could work.