Bug 410730 - App icon should be removed from desktop when such app is uninstalled
Summary: App icon should be removed from desktop when such app is uninstalled
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.16.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-08-08 16:15 UTC by Patrick Silva
Modified: 2019-08-20 22:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (14.27 KB, image/png)
2019-08-08 16:15 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-08-08 16:15:10 UTC
Created attachment 122015 [details]
screenshot

SUMMARY


STEPS TO REPRODUCE
1. set desktop laypout to Folder view
2. open the apps launcher, right click on any app, click "Add to desktop"
3. uninstall the app that you added to desktop

OBSERVED RESULT
generic icon named "org.kde.AppName.desktop" remains on desktop,
see the attached screenshot.

EXPECTED RESULT
icon of an uninstalled app should be removed from desktop

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2019-08-08 16:15:41 UTC
Operating System: Arch Linux 
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0
Comment 2 Eike Hein 2019-08-12 06:00:55 UTC
No, Folder View isn't a dock - a file is a file, we can't just delete user files indirectly.
Comment 3 Patrick Silva 2019-08-20 13:00:12 UTC
from the end user point of view, a shortcut added to desktop
is not a file. It's jusy a shortcut. And it becomes useless
when its app is uninstalled.
Comment 4 David Edmundson 2019-08-20 13:17:31 UTC
Would it work to change "add to desktop" to create a symlink instead of a file copy?
Comment 5 Eike Hein 2019-08-20 13:24:02 UTC
You'd just get a dangling symlink that shows up as a no-icon file with a broken badge.
Comment 6 David Edmundson 2019-08-20 13:28:20 UTC
Exactly, you'd see a name and have a visual hint that it's now obsolete.
Comment 7 Nate Graham 2019-08-20 21:35:39 UTC
Yup. On the other hand, then the desktop items would all have the symlink badge and the text would be italicized, which I could see people objecting to. Then again, this already happens if you make the link in certain ways. Kinda messy.