Bug 484018 - KDE Plasma in Wayland does not support Drag and Drop operations from Dolphin to Chromium (and Firefox).
Summary: KDE Plasma in Wayland does not support Drag and Drop operations from Dolphin ...
Status: REOPENED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-19 19:46 UTC by Venca B Spam
Modified: 2024-09-13 12:55 UTC (History)
13 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Venca B Spam 2024-03-19 19:46:18 UTC
SUMMARY

KDE Plasma in Wayland does not support Drag and Drop operations from Dolphin to Chromium (and Firefox).

STEPS TO REPRODUCE
1. Login to KDE Plasma with Wayland
2. Open web page accepting upload files with Drag and Drop in Chromium (or Firefox)
3. Open Dolphin folder where there is at least one readable file
4. Drag and drop that file to the web page area which accepts uploads

OBSERVED RESULT
Chromium does not upload the file, instead acts like it download such file.

EXPECTED RESULT
Drag and Dropped file shall be accepted by the upload area in the web page

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.5.0-17-generic (64-bit)

ADDITIONAL INFORMATION

When tested on graphics platform X11 everything works well.
Comment 1 Enrico 2024-03-19 20:00:01 UTC
I've tested it on Plasma 6 (Drag & Drop a file from Dolphin to the VirusTotal page on Firefox) and it works fine.
On wayland .
Comment 2 teadrinkingprogrammer 2024-03-19 22:23:15 UTC
Can reproduce the bug on the following setup:

Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.7.9-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 3 Martin 2024-04-12 08:08:11 UTC
I can't reproduce the exact issue as OP, but I can 100% reproduce at least a very similar issue in the same browser on a more up to date setup.

Drag and drop seems to depend on last-touched window.

For example, if I drag a file from Dolphin over VSC(Electron) and then to the target Chromium window with https://www.virustotal.com/gui/home/upload it works fine.

But if the last thing I dragged over is Plasma notifications, it will have the red crossed out O and won't let me upload. In that state, I can change the last-dragged-through-element by hovering over VSC again and back to Chromium, and the icon will change and it will work.

Note that there is currently a bug in current Chromium versions where drag and drop will break the browser, and the workaround is to do drag and drop again without actually dropping the file to re-enable it. 

Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 62.0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X670 AORUS ELITE AX
Comment 4 Dilam 2024-04-17 17:27:09 UTC
On Firefox, I have the issue only when dropping a second file like told in bug 483645 : https://bugs.kde.org/show_bug.cgi?id=483645
I don't know if this bug is the same and is related to switches between windows.
Comment 5 equeim 2024-05-08 23:56:20 UTC
It used to work in Plasma 5 after a bit of back-and-forth alt-tabbing between Dolphin and Firefox while "holding" the file, not it doesn't work at all. On Tumbleweed with Plasma 6.0.4 and Dolphin 24.02.2
Comment 6 Venca B Spam 2024-05-10 10:30:50 UTC
I found great workaround. If you want to use stable Plasma while keeping your laptop up-to-date, switch to Kubuntu 24.04.

It has Plasma 5, same as Neon had before switched to Plasma 6, and it is significantly faster!
Comment 7 raymo 2024-06-23 03:40:30 UTC
I can confirm this bug is now fixed on KDE 6.1.
Comment 8 aronkvh 2024-07-07 21:18:16 UTC
I'm using 6.1.2 on Tumbleweed, and I can't drag and drop to any chromium / electron applications.
Should I reopen this bug or create a new one?
Comment 9 jon 2024-07-22 17:16:31 UTC
I am and have been able to drag and drop into Firefox using Firefox in XWayland mode (MOZ_ENABLE_WAYLAND=0). In Wayland mode (MOZ_ENABLE_WAYLAND=1) I am unable to currently.

Plasma 6.1.3
Version 	128.0
Build ID 	20240719093654
Distribution ID 	archlinux
User Agent 	Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Comment 10 Felix Ernst 2024-07-27 15:31:22 UTC
This bug might be related to https://bugs.kde.org/show_bug.cgi?id=469644 which has just been fixed.
Comment 11 greenscarf005 2024-08-15 00:53:21 UTC
I'm also unable to drag-and-drop images to firefox on following setup:

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.5.0-44-generic (64-bit)
Graphics Platform: Wayland

> I am and have been able to drag and drop into Firefox using Firefox in XWayland mode (MOZ_ENABLE_WAYLAND=0). In Wayland mode (MOZ_ENABLE_WAYLAND=1) I am unable to currently.

I have tried both flag and neither worked.

> This bug might be related to https://bugs.kde.org/show_bug.cgi?id=469644 which has just been fixed.

tried `kwin_wayland --replace` but it crashed plasma and after that it did not fix the behavior.
Comment 12 Felix Ernst 2024-08-15 09:34:47 UTC
(In reply to greenscarf005 from comment #11)
> KDE Plasma Version: 6.1.3

> > This bug might be related to https://bugs.kde.org/show_bug.cgi?id=469644 which has just been fixed.
> 
> tried `kwin_wayland --replace` but it crashed plasma and after that it did
> not fix the behavior.

The bug report I linked states that this is fixed for Plasma 6.1.4. You indicated that you are on 6.1.3, so it not being fixed for you is expected.
Comment 13 greenscarf005 2024-08-17 02:07:50 UTC
(In reply to Felix Ernst from comment #12)
> (In reply to greenscarf005 from comment #11)
> > KDE Plasma Version: 6.1.3
> 
> > > This bug might be related to https://bugs.kde.org/show_bug.cgi?id=469644 which has just been fixed.
> > 
> > tried `kwin_wayland --replace` but it crashed plasma and after that it did
> > not fix the behavior.
> 
> The bug report I linked states that this is fixed for Plasma 6.1.4. You
> indicated that you are on 6.1.3, so it not being fixed for you is expected.

sorry, haven't noticed that. that said, even after i upgraded to plasma 6.1.4 the issue isn't solved at all.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-40-generic (64-bit)
Graphics Platform: Wayland
Comment 14 rostislavkaleta 2024-08-18 04:52:50 UTC
I can confirm the issue persists. Drag and drop isn't working across few other system apps I have used, like dragging file from Dolphin to Thunderbird as attachment, or to Slack or Discord. This has been an issue for me basically since KDE 6 (Wayland).
Comment 15 Martin Tlustos 2024-09-05 05:20:55 UTC
Doesn't work here, either

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-40-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 15,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Acer
Product Name: Aspire A515-44G
System Version: V1.12