summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index b44f75c8..b7ad4617 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -90,7 +90,10 @@ def main(
         args.selectfile = os.path.abspath(args.selectfile)
         args.paths.insert(0, os.path.dirname(args.selectfile))
 
-    paths = args.paths or [os.environ.get('PWD', os.getcwd())]
+    if args.paths:
+        paths = [p[7:] if p.startswith('file:///') else p for p in args.paths]
+    else:
+        paths = [os.environ.get('PWD', os.getcwd())]
     paths_inaccessible = []
     for path in paths:
         try: