diff options
author | iamevn <iamevn@users.noreply.github.com> | 2015-09-08 17:15:45 -0400 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-10-04 01:29:10 +0200 |
commit | 0e6bc965703a4fe7a68f5fe8f4addc21c75335ff (patch) | |
tree | 245eb5dce4c898c1496298b12f137685df159139 /ranger | |
parent | a3e15229d049386b211d3974374c4b10f69e76d5 (diff) | |
download | ranger-0e6bc965703a4fe7a68f5fe8f4addc21c75335ff.tar.gz |
really fix #300 and #341
os.environ['SHELL'] returns '/usr/bin/fish' which != 'fish' this should fix fish compatibility.
Diffstat (limited to 'ranger')
-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: |