Bug 503157 - With "Desktop" containment, drag-and-drop of an application onto the desktop only works once after boot
Summary: With "Desktop" containment, drag-and-drop of an application onto the desktop ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-22 09:40 UTC by Jin Liu
Modified: 2025-05-26 14:04 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2025-04-22 09:40:13 UTC
SUMMARY
DnD from anywhere (Kickoff, Taskmanager, Dolphin) to the desktop only works the first time after boot. After that it has no effect. After `systemctl --user restart plasma-plasmashell.service`, it works for one time again.

STEPS TO REPRODUCE
1. Drag an icon from taskmanager and drop on the desktop.
2. A new icon appears on the desktop.
3. Repeat step 1.

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Another new icon appears on the desktop.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 16 GiB of RAM (15.0 GiB usable)
Graphics Processor: AMD Radeon Graphics
Comment 1 Nate Graham 2025-04-22 15:35:47 UTC
I can't reproduce this on today's git master built on top of Qt 6.8.2; works as expected for me.

Maybe a 6.9 regression?
Comment 2 Jin Liu 2025-04-22 15:38:25 UTC
(In reply to Nate Graham from comment #1)
> I can't reproduce this on today's git master built on top of Qt 6.8.2; works
> as expected for me.
> 
> Maybe a 6.9 regression?

Possible. But I don't have Qt 6.8 to test. Also there's no error message in system journal.
Comment 3 duha.bugs 2025-04-22 18:44:59 UTC
I don't think its a QT regression, I cannot reproduce this on Arch, Qt 6.9 and git master.
Comment 4 Jin Liu 2025-04-23 01:18:54 UTC
I can reproduce in both master and 6.3.4 in a new user. The default "folder" desktop doesn't have the problem. But the "desktop" desktop does.
Comment 5 Nate Graham 2025-04-23 07:14:02 UTC
Interesting. Unfortunately I cannot reproduce that either.
Comment 6 cwo 2025-04-23 16:29:18 UTC
I can partially reproduce this on 6.9 with Fedora - I can drag files from Dolphin multiple times and it will offer to do something appropriate (create an icon widget, create a media frame widget, create a sticky note etc.) for that file type. This works more than once.

But it breaks if it's an application - dragging an app from the task manager, kickoff or a .desktop file from /usr/share/applications works only once, and after that d&d is dead even for other things.

Dragging a folder from kickoff works however, only apps are affected.
Comment 7 John Kizer 2025-04-24 05:22:21 UTC
I can reproduce on my Fedora KDE 42 device, exactly as was mentioned in comment #6.
Comment 8 Marco Martin 2025-05-26 13:51:00 UTC
cannot reproduce on master
Comment 9 Marco Martin 2025-05-26 13:51:18 UTC
(In reply to Marco Martin from comment #8)
> cannot reproduce on master

(master or 6.4 branch, that is)
Comment 10 cwo 2025-05-26 14:04:24 UTC
I also can't reproduce it anymore. The bug is back if I go back to pre-a363cfcf libplasma, and that commit seems highly relevant, so I feel it's safe to say that fixed it.