about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-04-03 16:10:55 +0200
committerhut <hut@lavabit.com>2011-04-03 16:31:37 +0200
commitd1784230c9f05c7032a17ebd46d2362f2c371ad6 (patch)
treebccca88f8af0b1a396ab922e94541e97ed5b8911
parent2c309379ac09dabb8b1043ae0ad652dc47657649 (diff)
downloadranger-d1784230c9f05c7032a17ebd46d2362f2c371ad6.tar.gz
core.fm: fixed mimetype bug
-rw-r--r--ranger/core/fm.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index ec2fbdbb..fa972b50 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -60,6 +60,10 @@ class FM(Actions, SignalDispatcher):
 				.format(__version__, os.getpid()))
 		self.log.append('Running on Python ' + sys.version.replace('\n',''))
 
+		mimetypes.knownfiles.append(os.path.expanduser('~/.mime.types'))
+		mimetypes.knownfiles.append(self.relpath('data/mime.types'))
+		self.mimetypes = mimetypes.MimeTypes()
+
 	# COMPAT
 	@property
 	def executables(self):
@@ -96,10 +100,6 @@ class FM(Actions, SignalDispatcher):
 
 		self.env.signal_bind('cd', self._update_current_tab)
 
-		mimetypes.knownfiles.append(os.path.expanduser('~/.mime.types'))
-		mimetypes.knownfiles.append(self.relpath('data/mime.types'))
-		self.mimetypes = mimetypes.MimeTypes()
-
 	def destroy(self):
 		debug = ranger.arg.debug
 		if self.ui: