vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.21k stars 420 forks source link

Drag and drop on Wayland Desktop #592

Open huanghe2015 opened 2 years ago

huanghe2015 commented 2 years ago

Describe the bug

When trying to drag and drop a file from Windows to Folder in File Explorer, the file icon will be stuck on the screen, and pulling another will show a dialog box with “Unsupported drag operation, an invalid type of drag and drop used”.

Reproduction steps

1. Install OS
2. Install package (Shown as additional context)
3. Try to drag and drop a file to a folder in File Explorer
...

Expected behavior

The file will be shown on File Explorer.

Additional context

Environment

Host OS

Windows 10 LTSC 2019

Guest OS

Ubuntu 22.04

VMware version

VMware® Workstation 16 Pro 16.1.2 build-17966106

Package List

open-vm-tools-desktop/jammy,now 2:11.3.5-1ubuntu4 amd64 [已安装] open-vm-tools-sdmp/jammy,now 2:11.3.5-1ubuntu4 amd64 [已安装] open-vm-tools/jammy,now 2:11.3.5-1ubuntu4 amd64 [已安装,自动]

johnwvmw commented 2 years ago

@huanghe The 2015 Ubuntu 22.04 graphical desktop defaults to Wayland. There are some know issues with DnD on Wayland that we are tracking internally. Until those issues are resolved, please try using the "Gnome on Xorg" option.

The switch between Wayland or X11 choice can be made from the Settings icon in the lower right corner of the Login screen. Make the selection before entering you password.

Please let us know if this helps.

huanghe2015 commented 2 years ago

Thanks for reminding, @johnwvmw . Can this issue be pinned until resolutions have?

johnwvmw commented 2 years ago

This issue has been attached to the internal bug tracking UI issues with the Wayland desktop.

huanghe2015 commented 2 years ago

BTW, looks like the same happens on Debian 11 (Bullseye) with the Wayland desktop.

codeeditor commented 2 years ago

Another bug report:

Describe the bug When trying to drag and drop a file from Windows to Folder in Ubuntu 22.04 File Explorer, the file icon will be stuck on the screen, and pulling another will show a dialog box with “Unsupported drag operation, an invalid type of drag and drop used”.

Reproduction steps

  1. Install Ubuntu 22.04 Desktop
  2. apt update && apt upgrade
  3. apt install open-vm-tools open-vm-tools-desktop
  4. reboot Ubuntu guest OS
  5. Failed to drag and drop a file from windows 11 host to a folder or desktop in Ubuntu guest OS. Clipboard working as expected.

explorer_Mu5i7vxhM4

Expected behavior

The file will be moved from host OS to guest OS The file will be shown on File Explorer.

Additional context - Environment

Host OS Windows 11 21H2 Build 22000.675 Windows Feature Experience Pack 1000.22000.675.0

Guest OS Ubuntu 22.04 desktop 5.15.0-33-generic

VMware version VMware® Workstation 16 Pro 16.2.3 build-19376536

Package List gnome/jammy 1:42+3 amd64 open-vm-tools-desktop/jammy,now 2:11.3.5-1ubuntu4 amd64 [installed] open-vm-tools/jammy,now 2:11.3.5-1ubuntu4 amd64 [installed]

env | grep -i wayland XDG_SESSION_TYPE=wayland XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.YB27M1 WAYLAND_DISPLAY=wayland-0

codeeditor commented 2 years ago

The 2015 Ubuntu 22.04 graphical desktop defaults to Wayland. There are some know issues with DnD on Wayland that we are tracking internally. Until those issues are resolved, please try using the "Gnome on Xorg" option.

@johnwvmw The same issue exist with "Ubuntu on Xorg" session.

johnthagen commented 1 year ago

Using "Ubuntu on Xorg" work around worked for me.

VM: Ubuntu 22.04 (clean install from ISO + apt upgrade) VMware Fusion 12.2.4, Intel macOS

ChaserCiC commented 1 year ago

I disabled Wayland in the configs so that only Xorg is used as I enabled Autologin on this VM. After rebooting DnD was working again, with small files (ca. 50kb) as well as with bigger once ( >1GB ).

The reference I used:

https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop

simonhf commented 1 year ago

I also disabled Wayland on Ubuntu by following the last instructions from @ChaserCiC and it fixed my drag and drop problems on VMware Workstation 16 Pro running on a Windows 11 Pro host with a Ubuntu 22.04 desktop guest :-)

ronisbr commented 1 year ago

The same behavior can be reproduced in openSUSE Tumbleweed using GNOME.

ForsakenDelusion commented 10 months ago

2015 Ubuntu 22.04图形桌面默认为Wayland。我们正在内部跟踪Wayland上的DnD的一些已知问题。在这些问题得到解决之前,请尝试使用“Xorg上的侏儒”选项。

Wayland 或 X11 选项之间的切换可以从登录屏幕右下角的设置图标进行。在输入密码之前进行选择。

如果有帮助,请告诉我们。

Using your method, I can move files in the folder, but I can't move files between the desktop and the host, Are you same?

gabortim commented 10 months ago

@johnwvmw Is there any news on the internal ticket?

Ubuntu 22.04 introduced better UI performance with Wayland. Switching back to Xorg makes these performance improvements unusable, although that way Drag&Drop will work again.

johnwvmw commented 9 months ago

I have pinged the hosted UI team on the internal ticket - again.

Can you list the UI performances that you see in Wayland that are not there with Xorg?

Thanks.

RunpengNie commented 5 months ago

Hi, it seems like this issue has not been resolved yet. Just wanted to bump it up to bring it back into the developer's attention.

jonathanvmw commented 5 months ago

@RunpengNie - As per the latest update on https://github.com/vmware/open-vm-tools/issues/614, the work is scheduled and there appears to be some traction. (Both this issue and 614 are attached to the same bug internally.)

sec13b commented 4 months ago

sudo apt-get install open-vm-tools-*

Sispheor commented 2 months ago

Broken on Ubuntu 24.04 😕

haodayizhia commented 2 months ago

顺便说一句,看起来同样的情况也发生在 Debian 11 (Bullseye) 和 Wayland 桌面上。

the same as Debian12

gabortim commented 2 months ago

Can you list the UI performances that you see in Wayland that are not there with Xorg?

@johnwvmw After reading a bit about the subject, it seems that one significant factor contributing to improved UI performance in Ubuntu 22.04 could be the implementation of triple buffering: https://discourse.ubuntu.com/t/why-ubuntu-22-04-is-so-fast-and-how-to-make-it-faster/30369

As far as I understand, to make it work one has the best chance of using Wayland. Not sure how it is translating to a VM UI performance.