New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make new terminal tiling window (or entirely new window) to inherit profile / directory #1208

Closed
Nikki1993 opened this Issue Dec 4, 2017 · 10 comments

Comments

Projects
None yet
2 participants
@Nikki1993
Copy link

Nikki1993 commented Dec 4, 2017

Hello,

Got problem with Tilix not inheriting current directory and environment. Got the option under Settings -> Global checked "New window inherits directory and profile from active terminal" but opening a new tiling window or entirely new separate still puts me back at home directory and stuff like nvm reverts to the default configuration. (if I switched to different node version in the previous terminal)

I also checked run the command as login shell as per issue under tilix but nothing.

Running Solus with zsh.

@gnunn1

This comment has been minimized.

Copy link
Owner

gnunn1 commented Dec 4, 2017

Does Solus source the vte.sh script? Do you have the same issue with bash?

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

Huh, that's interesting. I just switched to bash (by simply typing bash in the terminal) cd'ed into the directory and it opened zsh session with the correct directory. However, opening new session from zsh results in home path.

@gnunn1 I actually have no idea about vte.sh, at least based on your wiki issue, it's nowhere to be found in /etc/profile.d even profile.d itself doesn't exist.

@gnunn1

This comment has been minimized.

Copy link
Owner

gnunn1 commented Dec 4, 2017

In gnome-terminal, does it open a new tab in the same directory as the previous tab rather than the home directory? If no, then that's indicative of an issue where vte.sh isn't sourced.

Unfortunately I don't use Solus so I'm not sure where it installs it.

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

@gnunn1 with gnome terminal it's the same as Tilix. Bash works fine and inherits stuff properly. Zsh inherits from bash but then on tilix any new zsh session results in home while in gnome terminal it results in the "last bash -> zsh opened window" if that makes sense. So if I use bash, open new session under /git/projects then zsh session will inherit that path, but if I cd directory up and end up under /git and open new zsh -> zsh window then it will revert back to /git/projects under gnome-terminal BUT under home in Tilix.

So should I bug Solus devs about vte then?

@gnunn1

This comment has been minimized.

Copy link
Owner

gnunn1 commented Dec 4, 2017

I think so I suspect Solus doesn't have zsh setup to source vte.sh properly.

If you find vte.sh on your system, you call always source it manually in an appropriate spot for zsh.

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

I will try to contact upstream and see, meanwhile I ran find ~/ -type f -name "vte.sh" and it didn't return anything o_O I reckon that can't be the case or what would be the better command to run the search and see if / where vte.sh is?

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

Abort, found it under /usr/share/defaults/etc/profile.d/vte.sh

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

Alright, got it fixed by sourcing the path above :) thanks a lot @gnunn1

@Nikki1993 Nikki1993 closed this Dec 4, 2017

@Nikki1993

This comment has been minimized.

Copy link

Nikki1993 commented Dec 4, 2017

Actually, one last thing @gnunn1 if you don't mind, should this sourcing also inherit stuff like nvm? So if I set nvm to use node 6 in one terminal window, should it inherit?

@gnunn1

This comment has been minimized.

Copy link
Owner

gnunn1 commented Dec 4, 2017

Nothing is inherited, all tilix is doing is setting the CWD to be the same as the previous tab. It has no impact on nvm or other programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment