2024-01-31 10:51:19 +00:00
|
|
|
Index: misc/ext.d/archive.sh
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/archive.sh.orig
|
|
|
|
+++ misc/ext.d/archive.sh
|
|
|
|
@@ -210,7 +210,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}" "${pager}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/doc.sh.in
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/doc.sh.in.orig
|
|
|
|
+++ misc/ext.d/doc.sh.in
|
|
|
|
@@ -210,7 +210,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/image.sh
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/image.sh.orig
|
|
|
|
+++ misc/ext.d/image.sh
|
|
|
|
@@ -64,7 +64,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/misc.sh.in
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/misc.sh.in.orig
|
|
|
|
+++ misc/ext.d/misc.sh.in
|
|
|
|
@@ -102,7 +102,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/package.sh
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/package.sh.orig
|
|
|
|
+++ misc/ext.d/package.sh
|
|
|
|
@@ -51,7 +51,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/sound.sh
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/sound.sh.orig
|
|
|
|
+++ misc/ext.d/sound.sh
|
|
|
|
@@ -116,7 +116,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/text.sh.in
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/text.sh.in.orig
|
|
|
|
+++ misc/ext.d/text.sh.in
|
|
|
|
@@ -147,7 +147,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}" "${pager}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/video.sh
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/video.sh.orig
|
|
|
|
+++ misc/ext.d/video.sh
|
|
|
|
@@ -66,7 +66,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
Index: misc/ext.d/web.sh.in
|
|
|
|
===================================================================
|
|
|
|
--- misc/ext.d/web.sh.in.orig
|
|
|
|
+++ misc/ext.d/web.sh.in
|
|
|
|
@@ -47,7 +47,7 @@ view)
|
|
|
|
do_view_action "${filetype}"
|
|
|
|
;;
|
2013-07-18 16:35:38 +00:00
|
|
|
open)
|
2016-03-16 05:23:50 +00:00
|
|
|
- ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
|
|
|
+ test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \
|
2013-07-18 16:35:38 +00:00
|
|
|
do_open_action "${filetype}"
|
2024-01-31 10:51:19 +00:00
|
|
|
;;
|
|
|
|
*)
|