summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index 3bb857c3..32ea729c 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -175,6 +175,8 @@ def main():
 
 	if arg.targets:
 		target = arg.targets[0]
+		if target.startswith('file://'):
+			target = target[7:]
 		if not os.access(target, os.F_OK):
 			print("File or directory doesn't exist: %s" % target)
 			sys.exit(1)