2

I am posting here in the hope someone invloved in xfce might see it.

The issue is the same as what is reported here in 2017:

When I try the option "Open terminal here" in a folder, it only works if the whole path has no spaces or other uncommon characters.

2
  • 1
    In thunar 4.18.6-r0 in Alpine Linux v3.18, the "custom action" "Open terminal here" has the following in the command field: exo-open --working-directory %f --launch TerminalEmulator. With the package xfce4-settings installed, when the directory named test dir (with space in between the words "test" and "dir") is right clicked and "Open terminal here" is activated from the context menu, the terminal application opens with /home/user/test dir as the output from pwd. It is likely some of the packages are outdated on your system (eg. you are using Debian stable or a similar distro). Commented Mar 7, 2024 at 22:18
  • Thanks for the report @Vilinkameni, glad that things are working now, a problem showing since 2017 has finally been fixed. I should have recorded thunar's version over 2 years ago, but just for the reference/comparison, thunar in Debian stable now is 4.18.4-1, and in Debian testing, 4.18.8-1. Commented Mar 8, 2024 at 4:44

1 Answer 1

-1

Try escaping the space/uncommon characters and pipe it to xterm. This should prevent the space from breaking up the path into multiple arguments.

echo %f | sed 's/ /\\ /g' | xterm
1
  • 1
    Thanks for the reply, Ashley. I normally won't reply to answers like this but seeing that you being the first time contributor here, let me point out that, A) Quoting path as "..." would be a better option normally, at least in shell. B) the command that you use "echo path | xterm" is not able to set the initial work path for xterm. Commented Mar 7, 2024 at 16:10

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.