1.4.3 64bit - Drag & Drop to other applications not working on Wayland

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Subject: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

XnView: Version 1.4.3 64bits (Feb 26 2023) - installed from .deb file https://download.xnview.com/XnViewMP-linux-x64.deb
OS: Ubuntu 22.04 LTS running Wayland

I'm unable to drag and drop files from XNView into other programs. My main use for this is attaching files to e-mail or instant messages in browser windows (Gmail, Whatsapp, Slack). Also doesn't work for moving files to file browser windows (Nautilus)

Effect: Nothing happens at all

To reproduce:
1. Open XnViewMP
2. Open second application (such as a Nautilus window)
3. Drag an image file into the second application

Actual behaviour (bug): Nothing happens. Wayland isolates applications much more strongly than the previous X11 system, so I'm assuming the file isn't being passed between applications properly.

Expected behaviour: File is moved to the folder open in the file explorer (Nautilus) or inserted in the chat/e-mail window. IIRC this worked as expected if X was used rather than Wayland.
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Just updated to 1.4.4. Still no change unfortunately.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by xnview »

it seems that it's a QT problem
Pierre.
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Thanks for your reply!

Does that mean we simply need to wait until QT support for Wayland improves?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by xnview »

yes
Pierre.
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Thanks for the info, I will see if I can stick with X.org rather than Wayland for now.
zenden
Posts: 5
Joined: Mon May 29, 2023 10:45 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by zenden »

Drag n drop to Firefox window on Wayland is working.
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Awesome, was there an update to QT? Which version of which distro are you running?
zenden
Posts: 5
Joined: Mon May 29, 2023 10:45 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by zenden »

It works with Firefox and Chromium only. Not working with LibreOffice writer.
The problem still exists. Tested on Ubuntu 22.04
zenden
Posts: 5
Joined: Mon May 29, 2023 10:45 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by zenden »

bemymonkey wrote: Wed May 31, 2023 6:33 am Awesome, was there an update to QT? Which version of which distro are you running?
Installed Qt version doesn't matter because XnView MP is statically linked with Qt 5.
zenden
Posts: 5
Joined: Mon May 29, 2023 10:45 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by zenden »

I just tried the latest XnView MP on Ubuntu 23.04 (64 bit).

Dragging from XnView MP to Gnome file manager causes causes Gnome shell to crash.

Also XnView MP is not working at all on KDE plasma with Wayland.
Just hangs at startup. See log: https://pastebin.com/QLdfNHFk

Maybe it's not XnVIew's fault, but linux desktop environment's and Wayland.
Attachments
drag_n_drop_crash.png
bemymonkey
Posts: 7
Joined: Tue Mar 28, 2023 11:27 am

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Post by bemymonkey »

Just a heads up: XnViewMP as a Flatpak allows drag & drop under Wayland without issue on Debian 12.
Post Reply