From 865c343e809f5535c980623f87cc3921c52d667f Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 27 Feb 2013 17:47:35 +0000 Subject: [PATCH] Ignore /bin/bash when selecting the correct shell for a user. Closes LP#1122031 --- terminatorlib/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terminatorlib/util.py b/terminatorlib/util.py index 1592cc7f..b8ad5aba 100755 --- a/terminatorlib/util.py +++ b/terminatorlib/util.py @@ -125,8 +125,7 @@ def shell_lookup(): usershell = pwd.getpwuid(os.getuid())[6] except KeyError: usershell = None - shells = [os.getenv('SHELL'), usershell, 'bash', - 'zsh', 'tcsh', 'ksh', 'csh', 'sh'] + shells = [usershell, 'bash', 'zsh', 'tcsh', 'ksh', 'csh', 'sh'] for shell in shells: if shell is None: