! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
opening terminal in a specific directory is broken since 0.8.9
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Xfce4-terminal
Component:
General

Comments

Description n1dr+cmxfce 2019-12-27 15:03:21 CET
Hi. xfce4-terminal version 0.8.9 broke the action of opening the terminal in a specific directory.

Steps to reproduce:
* open the root `/` directory in thunar or doublecmd (the latter if it is configured with xfce4-terminal as its terminal)
* try to open terminal in that directory

Expected at this point: terminal is opened at this directory. This is the behavior of xfce4-terminal-0.8.8 as well.

Actually: the terminal is opened at `~`, no matter where you were.
Comment 1 Igor editbugs 2019-12-27 17:08:36 CET
Hi, thanks for the report!

Apparently, the working directory doesn't get passed from 'exo-open' into the terminal; I will look into this.

For now, you can use the following workaround: in Thunar, go to Edit -> Configure custom actions... and edit the "Open Terminal Here" action - add '--default-working-directory %f' to the end of the command line. This will pass the working directory directly into the terminal.

The action on my system looks as follows with the workaround:
exo-open --working-directory %f --launch TerminalEmulator --default-working-directory %f
Comment 2 n1dr+cmxfce 2019-12-27 17:18:45 CET
I'm not sure I got it correctly. If I downgrade xfce4-terminal to 0.8.8, everything works as expected. Do you mean that when I explicitly call xfce4-terminal from doublecmd, the process switches to `exo-open` and then back to `xfce4-terminal`? If not, then the bug is in xfce4-terminal itself, right?
Comment 3 n1dr+cmxfce 2019-12-27 17:20:22 CET
Alternative way to test:

* open xfce4-terminal
* go to to any other directory than your home
* execute `xfce4-terminal` from inside the already existing terminal

With 0.8.8, same directory would be used. With 0.8.9, you are reset to home.
Comment 4 Igor editbugs 2019-12-27 19:40:01 CET
I'm not saying there isn't a bug in xfce4-terminal, I'm just suggesting a way around the bug.
Comment 5 n1dr+cmxfce 2019-12-27 20:08:58 CET
@Igor, I meant this line:
> Apparently, the working directory doesn't get passed from 'exo-open' into the terminal; I will look into this.

But anyway, I got it, thanks!
Comment 6 Git Bot editbugs 2019-12-27 20:22:49 CET
Igor referenced this bugreport in commit 7b024aa09bd4553269d616835dac6fff19d9fcf1

Revert "Respect the "Working Directory" setting when opening initial window"

https://git.xfce.org/apps/xfce4-terminal/commit?id=7b024aa09bd4553269d616835dac6fff19d9fcf1
Comment 7 Igor editbugs 2019-12-27 20:23:56 CET
I've reverted the change that broke the functionality and am going to make a bug-fix release to address this bug.
Thanks again for submitting it!
Comment 8 n1dr+cmxfce 2019-12-27 20:41:00 CET
Great, thanks!
Comment 9 Igor editbugs 2019-12-27 20:45:47 CET
You're welcome!

Bug #16307

Reported by:
n1dr+cmxfce
Reported on: 2019-12-27
Last modified on: 2019-12-27

People

CC List:
0 users

Version

Attachments

Additional information