Bug 485811 - The Trash disappears from the desktop after being emptied and until plasmashell restart
Summary: The Trash disappears from the desktop after being emptied and until plasmashe...
Status: RESOLVED DUPLICATE of bug 485771
Alias: None
Product: plasmashell
Classification: Plasma
Component: Trash (show other bugs)
Version: 6.0.4
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 19:11 UTC by Ilya Bizyaev
Modified: 2024-05-04 16:26 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2024-04-19 19:11:01 UTC
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
Comment 1 Ilya Bizyaev 2024-04-19 19:12:33 UTC
I filed this bug in the “Trash” component, but it's about ~/Desktop/trash.desktop, not the applet.
Comment 2 bokic1023 2024-04-20 17:00:27 UTC
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.
Comment 3 Patrick Silva 2024-04-22 12:43:07 UTC
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
Comment 4 mirthost 2024-04-23 10:08:30 UTC
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
Comment 5 Sin Jeong-hun 2024-04-24 13:25:47 UTC
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.
Comment 6 My2ndAngelic 2024-04-24 17:51:31 UTC
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
Comment 7 Mike Koss 2024-05-01 10:02:15 UTC
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.
Comment 8 Sin Jeong-hun 2024-05-02 19:45:05 UTC
*** Bug 486047 has been marked as a duplicate of this bug. ***
Comment 9 Sin Jeong-hun 2024-05-02 19:47:26 UTC
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.
Comment 10 Sin Jeong-hun 2024-05-04 05:44:05 UTC
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.
Comment 11 Holmes 2024-05-04 16:26:43 UTC
This is a duplicate of my bug report #485771

*** This bug has been marked as a duplicate of bug 485771 ***