In Thunar, a user can select a so-called "UCA" (User Configurable Action). In doing so, he can BROWSE to select a command which is to be run. If the path to command (including the actual filename) contains spaces, the command is to be put in quotes. If it's not, when the UCA is selected, nothing will happen, as the programm cannot be found. Attached patch fixes this issue. When a user selects (after browsing) a filename which contains spaces, the quotes (") are put before and after the filename. There's also a bug at upstream reg. this - http://bugzilla.xfce.org/show_bug.cgi?id=3105
Created attachment 115747 [details, diff] Patch against thunar-uca-editor.c, adding quotes The attached patch makes it so, that the filename has quotes (") before and after it, if quotes are required. Right now, it only checks for the occurance of space.
Forgot to mention the purpose of this bug - I'd like to suggest to add this patch to a (possible) r3, as it makes Thunar easier and better to use.
Alexander, We'll wait until upstream responses in http://bugzilla.xfce.org/show_bug.cgi?id=3105 before doing this change.
Upstream is here saying 'This bug should be marked INVALID'. http://bugzilla.xfce.org/show_bug.cgi?id=3105#c7 If they change their mind, let us know.. ty.
http://bugzilla.xfce.org/show_bug.cgi?id=3105#c11 , status has changed to upstream patch in form of unapplied patch attached to upstream bug. waiting for resolution.
(In reply to comment #2) > Forgot to mention the purpose of this bug - I'd like to suggest to add this > patch to a (possible) r3, as it makes Thunar easier and better to use. > I applied Nick Schermer's patch from upstream bug in -r3. Thanks for your work and reporting.