You are not logged in.

#1 2015-06-18 22:24:05

afulm
Member
Registered: 2012-01-31
Posts: 20

Can't open files with spaces from gui applications

When I try to open a file or directory from say qbittorrent or clementine in xfce, I get the message:
"Failed to open URI "file:///somewhere/filename%20with%20spaces".
Googling told me this problem was due to passing a "%U" instead of a "%F" somwhere, but I don't know where to change this.

Offline

#2 2015-06-18 22:31:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Can't open files with spaces from gui applications

I don't use any DE or those kinds of gui tools, but the "%U" instead of an "%F" issue would be in the .desktop files.  There are systemwide .desktop files in /usr/share/applications/ and you can override these with your own customized versions in ~/.local/share/applications/

So a workaround at least would be to copy the relevant desktop files from the system-wide folder to your user's folder and edit them appropriately changing %U to%F.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-06-19 14:18:49

afulm
Member
Registered: 2012-01-31
Posts: 20

Re: Can't open files with spaces from gui applications

Thanks, that's what was I thought myself, but in that case I have no idea what .desktop files to change. Thunar for example is already %F, as is the other applications that would open the files.

Offline

#4 2015-06-19 14:22:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Can't open files with spaces from gui applications

The problem may be also be in xdg-open.  Many desktop apps pass the file name to xdg-open if the file icon is clicked on or otherwise 'activated'.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2015-06-19 16:32:58

toz
Member
Registered: 2011-10-28
Posts: 513

Re: Can't open files with spaces from gui applications

I believe its this exo bug that you are experiencing.

Offline

Board footer

Powered by FluxBB