Comment 15 for bug 1970921

Revision history for this message
Nope (darthruler) wrote :

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.