Nautilus doesn't copy filenames for paste to other programs anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
Fix Released
|
Unknown
|
|||
nautilus (Ubuntu) |
Fix Released
|
Low
|
Dariusz Gadomski | ||
Focal |
Fix Released
|
Medium
|
Dariusz Gadomski |
Bug Description
[Impact]
* One of the upstream changes changed behavior of clipboard copying files/directories from nautilus to applications accepting text only (e.g. gnome-terminal). In such case the pasted input is prefixed with:
x-special/
copy file://
This was not the case in earlier releases and this change has been reverted in later upstream releases.
Reverting the problematic commit will fix the usecase reported in this bug (and all applications where copying from Nautilus and pasting the data into a text-based input makes sense), but will break copying to/from Desktop Icons extension.
I recommend reporting the Desktop Icons extension issue (present already in every later Ubuntu release) in a separate bug and track the fix there.
[Test Plan]
1. Open nautilus.
2. Right-click on any file or directory and select 'Copy' from the context menu.
3. Open gnome-terminal and right-click paste the contents of the clipboard.
Expected result: path of the file/directory is pasted in the terminal.
Actual result: pasted input is prefixed with "x-special/
copy file://"
[Where problems could occur]
* There are some workarounds listed in the upstream bug so fixing the root cause may break environments with those workarounds in place.
* Reverting this change also limits functionality of the desktop icons extension shipped with Ubuntu. Namely: before the new clipboard API is used in desktop-icons (merge requests [1] and [2]) copying and pasting to/from the desktop extension to a nautilus will not be possible via keyboard shortcuts or context menu (dragging and dropping will remain to work).
[1] https:/
[2] https:/
[Other Info]
Original bug description:
Until Ubuntu 18.10 Nautilus does copy all selected filenames in simple Text format and this way you cold paste the selected files as a list to other programs: for example into the texteditor gedit. This was a very useful function if you have, for example, to upload a file to webmail or other web-service. You cold copy the file within nautilus and paste it directliy to the selection dialog or webfield to upload the file.
Or if you wanted a simple List of all your files in a folder you where able to select all files with nautilus, copy and paste into gedit. This is not possible anymore. The output of natilus looks now like this:
x-special/
copy
file://
Until Ubuntu 18.10 this looks like this:
/home/<
Steps to reproduce:
1. Select files with nautilus
2. Press Ctrl+C
3. open gedit
4. press Ctrl+V
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: nautilus 1:3.32.
ProcVersionSign
Uname: Linux 5.0.0-27-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 11 15:06:14 2019
ExecutablePath: /usr/bin/nautilus
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_nautilus:
Changed in nautilus: | |
status: | Unknown → New |
Changed in nautilus (Ubuntu): | |
assignee: | nobody → Dariusz Gadomski (dgadomski) |
status: | Triaged → Fix Released |
Changed in nautilus (Ubuntu Focal): | |
assignee: | nobody → Dariusz Gadomski (dgadomski) |
description: | updated |
tags: | added: sts sts-sponsor-dgadomski |
Changed in gnome-shell (Ubuntu Focal): | |
assignee: | nobody → Dariusz Gadomski (dgadomski) |
Changed in gnome-shell (Ubuntu): | |
status: | New → Fix Released |
Changed in gnome-shell (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in nautilus (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in gnome-shell (Ubuntu): | |
importance: | Undecided → Medium |
Changed in gnome-shell-extension-desktop-icons (Ubuntu Focal): | |
importance: | Undecided → Medium |
assignee: | nobody → Dariusz Gadomski (dgadomski) |
description: | updated |
tags: |
added: focal removed: disco |
Changed in gnome-shell-extension-desktop-icons (Ubuntu): | |
importance: | Undecided → Low |
Changed in nautilus: | |
status: | New → Fix Released |
Thank you for your bug report, that's known upstream and discussed there /gitlab. gnome.org/ GNOME/nautilus/ issues/ 634
https:/