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:
647866e0374ef'>b55bd70 ^
a3319c6 ^
6a9300e ^
4e926a9 ^
2cf8ef9 ^

52a8cc8 ^
2cf8ef9 ^
b55bd70 ^
19390b1 ^
97ced11 ^
98afb7b ^
19390b1 ^
a73a882 ^
b38905b ^
a73a882 ^
19dcbc5 ^

1ef2307 ^
19dcbc5 ^
b60406c ^
9e4e4d9 ^

19dcbc5 ^




8c4623d ^

42fd392 ^
19dcbc5 ^










42fd392 ^
19dcbc5 ^








a73a882 ^



d6a6eca ^
a08d83b ^



a73a882 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72