Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mthias:branches:openSUSE:Factory
mc
mc-extd-xdg.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mc-extd-xdg.patch of Package mc
--- misc/ext.d/archive.sh | 2 +- misc/ext.d/doc.sh.in | 2 +- misc/ext.d/image.sh | 2 +- misc/ext.d/misc.sh.in | 2 +- misc/ext.d/package.sh | 2 +- misc/ext.d/sound.sh | 2 +- misc/ext.d/text.sh.in | 2 +- misc/ext.d/video.sh | 2 +- misc/ext.d/web.sh.in | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) --- a/misc/ext.d/archive.sh +++ b/misc/ext.d/archive.sh @@ -210,7 +210,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" "${pager}" ;; *) --- a/misc/ext.d/doc.sh.in +++ b/misc/ext.d/doc.sh.in @@ -210,7 +210,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/image.sh +++ b/misc/ext.d/image.sh @@ -64,7 +64,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/misc.sh.in +++ b/misc/ext.d/misc.sh.in @@ -102,7 +102,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/package.sh +++ b/misc/ext.d/package.sh @@ -51,7 +51,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/sound.sh +++ b/misc/ext.d/sound.sh @@ -116,7 +116,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/text.sh.in +++ b/misc/ext.d/text.sh.in @@ -147,7 +147,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" "${pager}" ;; *) --- a/misc/ext.d/video.sh +++ b/misc/ext.d/video.sh @@ -66,7 +66,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *) --- a/misc/ext.d/web.sh.in +++ b/misc/ext.d/web.sh.in @@ -47,7 +47,7 @@ view) do_view_action "${filetype}" ;; open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ + test -n "$DISPLAY" && ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ do_open_action "${filetype}" ;; *)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor