As no fix has been released yet...  Echoing Alejandro's #10 comment, when 
attempting to drag and drop images from "Files" to Google Chrome or Slack, the 
following (seemingly random) garbage text is appended / suffixed to the file 
extension:
<filename>.jpg0:~28:478:44
<filename>.png0:~22:478:44
<filename>.png0:~7:460:44

As a result of the appended text, the destination app returns an error 
indicating the file path/type is invalid:
Google Chrome:
Your file couldn't be accessed
It may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND

Slack:
File unsupported
Sorry, <Screenshot_Filename> is a type of file not supported by Slack
Try uploading a .zip version of this file instead.
[OK]

In the case of Google Chrome, where the file path can be edited in the
address bar, removing the characters improperly suffixed onto the file
extension and attempting the navigation again by hitting Enter, the file
renders as expected.

A fresh installation of Ubuntu on a beefy Dell Precision 5680 laptop:
OS Name: Ubuntu 22.04.3 LTS
OS Type: 64-bit
GNOME Version: 42.9
Windows System: Wayland

Standard app installs, two different methods:
Google Chrome:
$ sudo apt install ./google-chrome-stable_current_amd64.deb
Google Chrome Version 117.0.5938.88 (Official Build) (64-bit)

Slack:
$ sudo snap install slack
Snap 4.34.115 64-bit

StackExchange got me over to this bug filing:
https://unix.stackexchange.com/questions/714305/unable-to-drag-and-drop-files-into-other-applications-on-ubuntu-22-04

And as "0xheartcode" posted there, it does seem to be a permissions issue:
"It is a permission issue/feature with Ubuntu 22.04.
Opening folders with sudo nautilus /home/user/ or sudo xdg-open /home/user/ 
fixes this."

When executing "$ sudo nautilus /home/<username>" from Terminal,
supplying my password, and using the newly launched "Files" window to
perform drag and drop into Slack, I can no longer reproduce the issue.
With standard permissions, I encounter the improperly suffixed
characters and upload error within one to three drag and drop attempts.
As root, I can drag and drop upload 25+ images to Slack (10 at a time,
per Slack's file upload limitations) without encountering the
bug/permissions issue once.

** Attachment added: "Screenshot_References.png"
   
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1970921/+attachment/5702482/+files/Screenshot_References.png

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1970921

Title:
  Drag and drop does not work

Status in Nautilus:
  Fix Released
Status in nautilus package in Ubuntu:
  Triaged

Bug description:
  After upgrading Ubuntu to 22.04 drag and dropping files from nautilus
  to web browser (chromium, google chrome / apps like seafile, etc.) do
  not work. Also drag & drop from nautilus to slack desktop app does not
  work. If making several attempts, it might suddenly work with nth
  attempt.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: nautilus 1:42.0-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
  Uname: Linux 5.15.0-27-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Apr 29 13:32:48 2022
  InstallationDate: Installed on 2016-11-22 (1983 days ago)
  InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
  SourcePackage: nautilus
  UpgradeStatus: Upgraded to jammy on 2022-04-29 (0 days ago)
  usr_lib_nautilus:
   evince                            42.1-3
   file-roller                       3.42.0-1
   nautilus-extension-gnome-terminal 3.44.0-1ubuntu1
   nautilus-share                    0.7.3-2ubuntu6

To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/1970921/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to