Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

config/rifle.conf: Fix handling of mkv files

#44 (comment)

adam8157:
 have 10 mkv files, four of them are "application/octet-stream"(and file
 without options returns "EBML file, creator matroska"), others are
 "video/x-matroska".
  • Loading branch information...
commit 14412eea0cd7ec556062f8f984dc5577ebdc8b30 1 parent 91f4dca
hut authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 ranger/config/rifle.conf
View
13 ranger/config/rifle.conf
@@ -116,11 +116,24 @@ mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
mime ^video|audio, has totem, X, flag f = totem -- "$@"
mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
+# MKV videos are sometimes not recognized as video/x-matroska
+!mime ^video|audio, ext mkv, has gmplayer, X, flag f = gmplayer -- "$@"
+!mime ^video|audio, ext mkv, has smplayer, X, flag f = smplayer "$@"
+!mime ^video, ext mkv, has mplayer2, X, flag f = mplayer2 -- "$@"
+!mime ^video, ext mkv, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
+!mime ^video, ext mkv, has mplayer, X, flag f = mplayer -- "$@"
+!mime ^video, ext mkv, has mplayer, X, flag f = mplayer -fs -- "$@"
+!mime ^video|audio, ext mkv, has vlc, X, flag f = vlc -- "$@"
+!mime ^video|audio, ext mkv, has totem, X, flag f = totem -- "$@"
+!mime ^video|audio, ext mkv, has totem, X, flag f = totem --fullscreen -- "$@"
+
#--------------------------------------------
# Video without X:
#-------------------------------------------
mime ^video, terminal, !X, has mplayer2 = mplayer2 -- "$@"
mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
+!mime ^video, ext mkv, terminal, !X, has mplayer2 = mplayer2 -- "$@"
+!mime ^video, ext mkv, terminal, !X, has mplayer = mplayer -- "$@"
#-------------------------------------------
# Image Viewing:
Please sign in to comment.
Something went wrong with that request. Please try again.