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:10:55 +0200
commit70f876d5306a2d808de4ae27e7f5f20377d6255c (patch)
tree322763426fafb6bb2eaa3597e3f855abc7244b26
parentf550ae3f3536d0a29244dfe51668f2f3bd6083a5 (diff)
downloadranger-70f876d5306a2d808de4ae27e7f5f20377d6255c.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: