2

I am trying to set it up so in Thunar when I use open Directory Here, xterm is the terminal emulator used.

I have tried 2 things:

xterm -hold -e "cd '{pwd}'"

and

xterm -hold -e "cd %f"

the %f coming from the help box on the page:

%f - the path to the first selected file

I either need to find a way to escape the %f so it is not interpreted literally("cd \%f" did not work) or have pwd execute in the first option.

I've also tried the following none of which worked:

xterm -hold -e "cd (pwd)" term -hold -e "cd $(pwd)"

1
  • What is your desktop environment? Xfce? If so, is it OK to set xterm as your preferred (default) terminal emulator?
    – airhuff
    Commented Jan 28, 2017 at 7:18

1 Answer 1

2

You should change directory before launching xterm. Something like:

cd "%f" && xterm -hold
1
  • 1
    Awesome, removing the quotes around "%f" worked. Thanks for the answer.
    – kalenpw
    Commented Jan 28, 2017 at 18:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .