"copy path" returns path with escape characters

Bug #1920926 reported by Potet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Undecided
Unassigned

Bug Description

Special characters (at least spaces) are escaped with backslash when copying file paths in Nautilus.

Say I have a PDF file named "date - document.pdf". The expected output from copy path would be:

> /home/user/date - document.pdf

Instead, Nautilus returns the following:

> /home/user/date\ -\ document.pdf

It would be more natural not to escape spaces, since they are not escaped for example in the terminal.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: nautilus 1:3.38.1-1ubuntu1
ProcVersionSignature: Ubuntu 5.8.0-45.51-generic 5.8.18
Uname: Linux 5.8.0-45-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.5
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 23 14:18:19 2021
GsettingsChanges:
 b'org.gnome.nautilus.icon-view' b'default-zoom-level' b"'large'"
 b'org.gnome.nautilus.window-state' b'sidebar-width' b'229'
 b'org.gnome.nautilus.window-state' b'initial-size' b'(944, 620)'
 b'org.gnome.nautilus.preferences' b'search-view' b"'icon-view'"
 b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'owner', 'group', 'permissions', 'where', 'date_modified', 'date_modified_with_time', 'date_accessed', 'recency', 'starred', 'detailed_type']"
InstallationDate: Installed on 2019-08-08 (593 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: nautilus
UpgradeStatus: Upgraded to groovy on 2020-10-29 (144 days ago)
usr_lib_nautilus:
 evince 3.38.0-1
 file-roller 3.38.0-1
 nautilus-extension-gnome-terminal 3.38.0-1ubuntu1.1
 nautilus-share 0.7.3-2ubuntu3
 python3-nautilus 1.2.3-3

Revision history for this message
Potet (5tein4rne) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.