diff options
author | hut <hut@lavabit.com> | 2012-08-05 14:29:00 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-05 14:29:00 +0200 |
commit | a1be5fc881e1378d5133fa6244e9f72a3dfc5508 (patch) | |
tree | 762757b5ecbdcfcd2a7c8a07023d40443acd0c06 /CHANGELOG | |
parent | b0314dd1e836763d864021d7adfb128196186c6a (diff) | |
download | ranger-a1be5fc881e1378d5133fa6244e9f72a3dfc5508.tar.gz |
core.actions: More reliable mimetype checking @ execute_file
This is a result of https://github.com/hut/ranger/issues/43 : adam8157: Hmm... I found this behavior is different between running in Debian Sid and Fedora 17. Their python version are both 2.7.3, but when you touch a file named foo.sh, and press "r", ranger in Fedora 17 displays bash as the first opener, then editor and pager, but ranger in Debian Sid displays editor first, then pager and bash. [...] hut: Ok, with your help I found it. Actions.execute_file and Actions.draw_possible_programs optimize the process by skipping the call to file --mimetype -Lb and using the mime type that the python mimetypes library found. The two methods return different mimetypes sometimes. Since file is more reliable than the python mimetypes library, I'll change it to use file always.
Diffstat (limited to 'CHANGELOG')
0 files changed, 0 insertions, 0 deletions