mirror of
https://github.com/wez/wezterm.git
synced 2024-12-22 12:51:31 +03:00
posix: prefer to resolve shell via the password database
I've had a couple of people report issues like https://github.com/wez/wezterm/issues/2378 recently, and we can avoid this class of problem by unsetting SHELL at proces startup, so that's what we do.
This commit is contained in:
parent
ed731a0d8d
commit
ad9490ee8f
@ -22,6 +22,9 @@ have `$SHELL` set in the environment, you will need to sign out and
|
||||
sign back in again for the environment to pick up your new `$SHELL`
|
||||
value.
|
||||
|
||||
*Since: nightly builds only*: wezterm will now always resolve the shell via the
|
||||
password database.
|
||||
|
||||
### On Windows Systems
|
||||
|
||||
1. The value of the `%COMSPEC%` environment variable is used if it is set.
|
||||
|
@ -198,4 +198,10 @@ pub fn bootstrap() {
|
||||
// wezterm or the mux server from inside gnome terminal.
|
||||
// <https://github.com/wez/wezterm/issues/2237>
|
||||
std::env::remove_var("VTE_VERSION");
|
||||
|
||||
// Sice folks don't like to reboot or sign out if they `chsh`,
|
||||
// SHELL may be stale. Rather than using a stale value, unset
|
||||
// it so that pty::CommandBuilder::get_shell will resolve the
|
||||
// shell from the password database instead.
|
||||
std::env::remove_var("SHELL");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user