I traced the problem to this file: /usr/share/xfce4/helpers/firefox.desktop
When I changed the existing line:
X-XFCE-CommandsWithParameter=%B -remote "openURL(%s)";%B %s;
To this (adding quotes to %s):
X-XFCE-CommandsWithParameter=%B -remote "openURL(%s)";%B "%s";
the problem went away.
Can someone take a look a this?
Created attachment 5757
I think all helpers should be fixed. Here is the patch.
Thanks for the bug report and patch. Fixed in http://git.xfce.org/xfce/exo/commit/?id=8cd3233f1d2312670444a202f79d55b98286aa4f
Unfortunately, this patch breaks invocations such as the following:
$ exo-open --launch TerminalEmulator screen -S test
The resulting error is:
Failed to execute child
Failed to execute child process "screen -S test" (No such file or directory)
The expected outcome would be to open a terminal emulator window that executes the command "screen -S test".
'exo-open --help' confirms that this behavior is indeed incorrect:
Else, if you specify the --launch option, you can select which preferred application you want to run, and pass additional parameters to the application (i.e. for TerminalEmulator you can pass the command line that should be run in the terminal).
At least the changes to xfce4-terminal.desktop.in.in need to be reverted. I'm not sure how the other terminals behave but we could possibly test them.
Reopening as the patch has had unwanted side effects, as per Evangelos' last comment
Created attachment 6022
Don't quote arguments passed to terminal emulators
This is my proposed patch. It basically reverts the quoting changes made to all terminal emulator helpers except for Sakura which weirdly enough doesn't work without quotes.
I briefly checked all terminals except the Debian one and nxterm, and they behave correctly after the patch. If I remember correctly, qterminal and xterm also worked fine with quotes.
*** Bug 11634 has been marked as a duplicate of this bug. ***
Thanks for additional test and a new patch. Applied at http://git.xfce.org/xfce/exo/commit/?id=b4200c9bab9f60e61a100dd12d841c2588b360d8