xdg-open fails to open files with embedded '#' in the name

Bug #1443889 reported by Paulo Marcel Coelho Aragão
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

If a filename has an embedded '#', xdg-open fails to open it.

Here's an example. The file:

paulo@monk:~/stage/edit$ ls -l Dino\ vegetariano\ #3\:\ Rúcula\ gum.mp4
-rw-rw-r-- 1 paulo paulo 1822717 Abr 14 00:13 Dino vegetariano #3: Rúcula gum.mp4

Making sure its MIME type can be recognized:

paulo@monk:~/stage/edit$ xdg-mime query filetype Dino\ vegetariano\ #3\:\ Rúcula\ gum.mp4
video/mp4

I tried opening both ways:

paulo@monk:~/stage/edit$ xdg-open file:///Dino\ vegetariano\ #3\:\ Rúcula\ gum.mp4

paulo@monk:~/stage/edit$ xdg-open Dino\ vegetariano\ #3\:\ Rúcula\ gum.mp4

and both failed with notification error message:

Failed to open "file:///Dino\ vegetariano\ #3\:\ Rúcula\ gum.mp4".

Error when getting information for file '/
Dino vegetariano ': No such file or directory

I attached a screenshot of the notification message.

I'm running Xubuntu 14.10, and xdg-utils version is 1.1.0~rc1-2ubuntu8

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: xdg-utils 1.1.0~rc1-2ubuntu8
ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
Uname: Linux 3.16.0-34-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Apr 14 07:58:46 2015
InstallationDate: Installed on 2014-11-25 (139 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
SourcePackage: xdg-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :
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.