Fix: Remove shell.exists() check from get_default_terminal (#2013)

* Fix: Make sure to get full path from SHELL env

* Feat: Revert to previous get_default_terminal and just remove shell exists check
This commit is contained in:
Nuno David 2022-12-13 12:06:20 +00:00 committed by GitHub
parent 685e39bd9b
commit 8eb6446b3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -448,9 +448,6 @@ impl Pty {
log::warn!("Cannot read SHELL env, falling back to use /bin/sh"); log::warn!("Cannot read SHELL env, falling back to use /bin/sh");
"/bin/sh".to_string() "/bin/sh".to_string()
})); }));
if !shell.exists() {
panic!("Cannot find shell {}", shell.display());
}
TerminalAction::RunCommand(RunCommand { TerminalAction::RunCommand(RunCommand {
args: vec![], args: vec![],
command: shell, command: shell,