diff options
author | iamevn <iamevn@users.noreply.github.com> | 2015-09-08 17:15:45 -0400 |
---|---|---|
committer | iamevn <iamevn@users.noreply.github.com> | 2015-09-08 17:15:45 -0400 |
commit | 1ac4bc45dd9d352eeae0c316dc86daae56732ff3 (patch) | |
tree | 32a4b182d56d837b76a8851d68bd2267036763b9 | |
parent | 6228b15906aa4ed253d6c52db565bfa10321a233 (diff) | |
download | ranger-1ac4bc45dd9d352eeae0c316dc86daae56732ff3.tar.gz |
really fix #300 and #341
os.environ['SHELL'] returns '/usr/bin/fish' which != 'fish' this should fix fish compatibility.
-rw-r--r-- | ranger/core/runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index 0e5d9fa3..0ae227a6 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -146,7 +146,7 @@ class Runner(object): # Set default shell for Popen if popen_kws['shell']: # This doesn't work with fish, see #300 - if os.environ['SHELL'] != 'fish': + if not 'fish' in os.environ['SHELL']: popen_kws['executable'] = os.environ['SHELL'] if 'stdout' not in popen_kws: |