Bug 416954

Summary: Desktop-file-based Trash icon on the desktop shows "Move to trash" in context menu
Product: [Plasma] plasmashell Reporter: johnathan <testing1237a-c>
Component: Desktop icons & Folder View widgetAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: minor CC: bugseforuns, kfm-devel, nate, plasma-bugs, robert.spitzenpfeil
Priority: NOR Keywords: usability
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:
Attachments: screenshot

Description johnathan 2020-01-30 16:10:58 UTC
Created attachment 125546 [details]
screenshot

SUMMARY
wastebin icon should not get deleted or allow user to delete that icon because it throws a fit everytime one deletes the wastebin icon

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-01-31 19:09:23 UTC
This is actually intentional; otherwise there would be no visible way to remove the trash from the desktop!

However maybe we should add a special case for this to change the text to "Remove Trash" because the idea of trashing the trash is pretty bizarre to most users.
Comment 2 Nate Graham 2023-04-09 22:32:16 UTC
*** Bug 408115 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2025-01-28 23:24:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2764
Comment 4 Nate Graham 2025-01-29 19:24:38 UTC
Git commit 3fd6ad2465df773caf9aa073efb23ed50c086401 by Nate Graham.
Committed on 29/01/2025 at 19:24.
Pushed by ngraham into branch 'master'.

Desktop: Make context menu for trash link and contents more contextual

There's already some special handling for the context menu of the trash
link, but it's currently not contextual enough: the menu shows many
items that are either not relevant to the trash, or expose the
implementation detail that the item is actually a .desktop file.

The same is true for items *in* the trash.

Expand on this to clean up their menus even more.
FIXED-IN: 6.4.0

M  +64   -29   containments/desktop/plugins/folder/foldermodel.cpp

https://invent.kde.org/plasma/plasma-desktop/-/commit/3fd6ad2465df773caf9aa073efb23ed50c086401