From d1784230c9f05c7032a17ebd46d2362f2c371ad6 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 3 Apr 2011 16:10:55 +0200 Subject: core.fm: fixed mimetype bug --- ranger/core/fm.py | 8 ++++---- 1 file 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: -- cgit 1.4.1-2-gfad0