summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 80b2e9a7..226d93cd 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -252,6 +252,8 @@ def load_settings(fm, clean):
 			except ImportError:
 				pass
 
+		allow_access_to_confdir(ranger.arg.confdir, False)
+
 		# Load rc.conf
 		custom_conf = fm.confpath('rc.conf')
 		default_conf = fm.relpath('config', 'rc.conf')
@@ -261,6 +263,8 @@ def load_settings(fm, clean):
 		if os.access(custom_conf, os.R_OK):
 			fm.source(custom_conf)
 
+		allow_access_to_confdir(ranger.arg.confdir, True)
+
 		# XXX Load plugins (experimental)
 		try:
 			plugindir = fm.confpath('plugins')