Bug 477689

Summary: Draw symlink emblem for desktop icons with no thumbnail that are symlinks
Product: [Plasma] plasmashell Reporter: Justin Jacobs <jajdorkster>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: dave.lindbergh, hein, nate, tbertels
Priority: NOR Keywords: junior-jobs
Version First Reported In: 5.27.9   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example showing the difference between symlinks that do/don't have thumbnails

Description Justin Jacobs 2023-11-28 20:32:15 UTC
Created attachment 163591 [details]
Example showing the difference between symlinks that do/don't have thumbnails

SUMMARY
As stated in the title, this only seems to happen for desktop icons without thumbnails. It also only happens on the desktop as far as I can tell, since symlinks in Dolphin look correct.


STEPS TO REPRODUCE
1. (Not required) Turn off "Show preview thumbnails" under Desktop Folder Settings -> Icons
2. Create a symlink on the desktop to a file or folder

OBSERVED RESULT
No symlink emblem on icons

EXPECTED RESULT
Visible symlink emblem on icons

SOFTWARE/OS VERSIONS
OS: Arch Linux
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Comment 1 Nate Graham 2023-11-30 20:58:46 UTC
Can reproduce on Plasma 6 too.
Comment 2 Nate Graham 2023-11-30 21:08:58 UTC
It appears that this is a missing feature in Folder View. It simply lacks the code to draw the link emblem, which Dolphin does do. The link emblem for the preview is actually baked into the preview image, explaining why it appears there.

If we do eventually add this feature to Folder View, we should probably make it conditional on the link not being a desktop file, since otherwise all desktop-file-based launchers that people put on their desktops will have the link icon and it will look ugly and I pretty much guaranteed we'll get loads of bug reports about it.
Comment 3 Dave92f1 2024-01-15 17:45:12 UTC
More info from https://discuss.kde.org/t/symlink-icons-not-appearing/9277 :

Screen shot showing two folders on the desktop, both are symlinks, but one has the overlay and the other doesn’t:

https://discuss-cdn.kde.org/uploads/default/original/2X/2/26e8399232546d43e7710e7bd4475cefa414e4e3.png

Here you can see the two files in ~/Desktop:

'''dave@MONOLITH:~/Desktop$ ll WD*
lrwxrwxrwx 1 dave dave 18 Nov 16 21:12 WD10TB -> /media/dave/WD10TB/
dave@MONOLITH:~/Desktop$ ll Li*
lrwxrwxrwx 1 dave dave 37 Dec  8 11:42 Linux_setup -> /home/dave/Desktop/WD10TB/Linux_setup/
dave@MONOLITH:~/Desktop$'''