STEPS TO REPRODUCE 1. Have some files in the trash bin, make sure it is visible on the desktop. 2. Empty the trash through the desktop icon's context menu or Dolphin's Places panel. OBSERVED RESULT The Trash icon disappears from the desktop. Moving new files to the trash bin does not make it re-appear. Restarting plasmashell restores it, regardless of whether it contains any files. EXPECTED RESULT The Trash remains visible on the desktop even when empty, reserving its consistent position on the desktop. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20240418 KDE Plasma Version: 6.0.80 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Kernel Version: 6.8.6-1-default (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION
I filed this bug in the “Trash” component, but it's about ~/Desktop/trash.desktop, not the applet.
Some further testing and information. It seems, after adding files or removing files from the trash, it would make the trash shortcut ICON disappear on the DESKTOP but it would still show the shortcut FILE in DOLPHIN. The trash shortcut is made by dragging the trash icon from Places in Dolphin to the desktop.
On my Arch Linux running Plasma 6.0.4 and neon unstable, the Trash icon disappears from desktop when I send an item to Trash via Dolphin. The Trash icon reappears on desktop after restarting Plasma by running "plasmashell --replace". Operating System: KDE neon Unstable Edition KDE Plasma Version: 6.0.80 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Graphics Platform: Wayland
I confirm this behavior. Desktop icons also disappear after editing. Operating System: EndeavourOS KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.6.28-1-lts (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics Memory: 27.3 ГиБ of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: LENOVO Product Name: 82JQ System Version: Legion 5 Pro 16ACH6H
I reported this https://bugs.kde.org/show_bug.cgi?id=486047 and it may be a duplicate of this issue, but in my case, I saw other .desktop shortcut that I created with a text editor and placed on the desktop disappearing just like the trash.desktop. Does this happen to you. In any case of disappeared .desktop, I could make it reappear by opening a file manager, go to ~/desktop, delete the .desktop files, and undo the deletion.
For some reasons, this behavior doesn't appear on Fedora 40. So maybe I can try downgrading KDE Plasma version? Operating System: Fedora Linux 40 KDE Plasma Version: 6.0.3 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.8.7-300.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 4 × 12th Gen Intel® Core™ i5-1235U Memory: 3.8 GiB of RAM Graphics Processor: llvmpipe Manufacturer: QEMU Product Name: Standard PC (Q35 + ICH9, 2009) System Version: pc-q35-8.2
I'm having this same problem on one computer, but on another computer with the same desktop setup, I can't reproduce the bug. Here is the system info for the PC where I am encountering the problem: Operating System: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.8-arch1-1 (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor Memory: 31.0 GiB of RAM Graphics Processor: AMD Radeon RX 6600 XT Manufacturer: HP Product Name: OMEN by HP 40L Gaming Desktop GT21-0xxx And here's the info for the one without the problem: Operating System: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.8-arch1-1 (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics Memory: 30.5 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: Dell Inc. Product Name: Dell G15 5535 System Version: 1.2.0 If anyone knows a way in which I might be able to probe both of these to figure out why this bug is coming up on the HP but not the Dell, let me know and I'll be happy to report any results.
*** Bug 486047 has been marked as a duplicate of this bug. ***
I thought it was random but it seems that, in my case, whenever I delete a file by drag-and-dropping a file into the Trash icon, whether the Trash was empty or not. I have also trying setting the same icon for both full/empty, but that made no difference.
In Bug 486047, I said other ".desktop"'s also disappearing, and I think now I can reproduce it 100%. It seems that whenever a ".desktop" file is modified, it disappears. For example, if I copy Dolphin's ".desktop" from "/usr/share/applications/" to the desktop, right-click and click "Properties", in the "Applications" tab, in the empty "Comment" field, if I type "1" and click "OK", Dolphin's icon disappears from the desktop. The Trash icon disappear when deleting a file, probably because that internally changes the ".desktop" files property somehow. Also, another workaround to get it back, other than deleting & undoing, is just renaming the ".desktop" file in Dolphin. The desktop uses the name in the properties, not the file name, so it doesn't matter what the file name is.
This is a duplicate of my bug report #485771 *** This bug has been marked as a duplicate of bug 485771 ***