From bababd8cd4259e90f20ab7dccde3de27cde8dcf6 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 16 Apr 2015 12:54:57 +0200 Subject: core.runner: fix `:shell $SHELL` not working with fish This fixes #300 and was caused by #187 (25dcff6) --- ranger/core/runner.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ranger/core/runner.py b/ranger/core/runner.py index 713f8027..0e5d9fa3 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -142,9 +142,12 @@ class Runner(object): if 'shell' not in popen_kws: popen_kws['shell'] = isinstance(action, str) + + # Set default shell for Popen if popen_kws['shell']: - # Set default shell for Popen - popen_kws['executable'] = os.environ['SHELL'] + # This doesn't work with fish, see #300 + if os.environ['SHELL'] != 'fish': + popen_kws['executable'] = os.environ['SHELL'] if 'stdout' not in popen_kws: popen_kws['stdout'] = sys.stdout -- cgit