nheko icon indicating copy to clipboard operation
nheko copied to clipboard

Unable to send file by dragging and dropping

Open VioletRose opened this issue 3 years ago • 8 comments
trafficstars

Describe the bug

I am unable to send files to the currently open channel by dragging and dropping them onto the Nheko window. The program does not seem to notice the attempted input or respond in any way.

To Reproduce

  1. Open Nheko client
  2. Navigate to a message channel
  3. Open a file manager
  4. Drag a file icon onto the Nheko client and release
  5. Observe nothing happens

What happened?

The client did not respond to the drag-and-drop in any way.

Expected behavior

Dragging and dropping a file icon onto the Nheko client should have equivalent functionality to clicking "Send a file" in the current open channel, browsing to the file in question, and clicking Select.

Version

0.10.0

Operating system

Linux (Ubuntu 22.04.1)

Installation method

Flathub

Desktop environment

GNOME with X11 as the window manager

VioletRose avatar Aug 31 '22 00:08 VioletRose

That seems to work fine, what version are you running?

deepbluev7 avatar Aug 31 '22 07:08 deepbluev7

OS: Linux, Ubuntu 22.04.1 Kernel version: 5.15.0-47 GNOME version: 42.2 Window manager: X11 Nheko: Flatpak 0.10.0

ghost avatar Aug 31 '22 15:08 ghost

Hm, it works fine on KDE with that version... Maybe the Gnome special handling code broke.

deepbluev7 avatar Aug 31 '22 17:08 deepbluev7

Updated the description from the bug template.

ghost avatar Sep 01 '22 02:09 ghost

I've since reinstalled a different OS, and can also reproduce this in the following conditions:

Version

0.10.0

Operating system

Linux (Manjaro 21.3.7)

Installation method

Flathub

Desktop environment

KDE Plasma with X11 as the window manager

ghost avatar Sep 05 '22 19:09 ghost

https://bugreports.qt.io/browse/QTBUG-91357

You might be able to work around that by giving Nheko filesystem permissions.

deepbluev7 avatar Sep 13 '22 20:09 deepbluev7

Nheko does have access to the directory I'm trying to drag and drop from already. You are correct though, giving it 100% file system access does address the issue.

ghost avatar Sep 16 '22 03:09 ghost

Well, the issue is that the normal portals, that power the file open dialog, don't work in this case. There is some new portal stuff for it, that Qt simply doesn't implement yet.

deepbluev7 avatar Sep 16 '22 08:09 deepbluev7