mc/mc-apps-torrent.patch
2012-04-10 11:52:44 +00:00

13 lines
433 B
Diff

--- misc/mc.ext.in.orig 2012-03-19 20:26:22.000000000 +0400
+++ misc/mc.ext.in 2012-04-04 19:49:06.427780685 +0400
@@ -614,7 +614,8 @@
# torrent
regex/\.([tT][oO][rR][rR][eE][nN][tT])$
- View=%view{ascii} ctorrent -x %f 2>/dev/null
+ View=%view{ascii} which ctorrent >/dev/null 2>&1 && ctorrent -x %f 2>/dev/null || which transmission-show >/dev/null 2>&1 && transmission-show %f || file %f
+
### Plain compressed files ###