Launching Terminator from Nemo, bash's initial working directory is not set

Asked by Howard

When launching Terminator from Nemo (either by first browsing to a folder, then right clicking, and selecting Open in Terminal, OR by clicking the optional 'Open a terminal in the active folder' icon), a terminal window with bash opens, but it's current working directory is always set to Home rather than where I've browsed to in Nemo.

For example, if I had browsed to ~/Desktop then bash should start in ~/Desktop$

However, if I launch Terminator from Nautilus, the current working directory is set correctly.

And before I was using GNOME Terminal, which also set the current working directory correctly.

So:

* Nautilus --> Terminator: pwd=current dir (correct)
* Nemo --> Terminator: pwd=$HOME (wrong)
* Nemo --> GNOME Terminal: pwd=current dir (correct)

So what's wrong? Not sure how to get Terminator to startup bash correctly.

I'm trying out Terminator because it seems better. I've set it as my default terminal emulator.

Using: Debian 9.4 w/ Cinnamon.

(And btw, the Terminator | Terminal Preferences | About tab doesn't say what version is installed. The package I installed says version 1.90+brz-1705-1 (stable))

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Terminator Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Howard (uliptical) said :
#1

Now it's working. Humm.

One thing I just did was to open a root Nemo (right click, then 'Open as Root'), then it worked.

Then closed root Nemo, and it still worked where it hadn't before.

???

Revision history for this message
Howard (uliptical) said :
#3

Ok, here's what seems to be happening:

If there's another terminal open, then the cwd is set to that other terminal's initial cwd (not the curent cwd), and not to where Nemo is browsing to. So this is still a problem.

However if there isn't another terminal open, then cwd is set to what Nemo is browsing to, which is what is expected.

Revision history for this message
Stephen Boddy (stephen-j-boddy) said :
#4

Read http://terminator-gtk3.readthedocs.io/en/latest/advancedusage.html#dbus

You are not launching a new process, you are asking the existing process to spawn a new window. You can a) disable DBus, or b) set nemo to launch terminator with the -u flag.

Revision history for this message
Howard (uliptical) said :
#5

Thanks Stephen. Any ideas on how I disable DBus or set nemo to launch
with -u option.  I've looked through:

man update-alternatives,

man terminator, and

   man nemo.

Also looked at ~/.config/terminator/config.

-- Howard

On 05/14/2018 02:22 PM, Stephen Boddy wrote:
> Your question #668981 on Terminator changed:
> https://answers.launchpad.net/terminator/+question/668981
>
> Status: Open => Answered
>
> Stephen Boddy proposed the following answer:
> Read http://terminator-
> gtk3.readthedocs.io/en/latest/advancedusage.html#dbus
>
> You are not launching a new process, you are asking the existing process
> to spawn a new window. You can a) disable DBus, or b) set nemo to launch
> terminator with the -u flag.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.