mc/mc-extd-xdg.patch
Adam Majer 3be791fd2c - Update to 4.8.32:
- Core
    - Tell the current directory to the terminal using OSC 7 sequence (so it can open new tabs there) (#3088)
    - Preserve ext2fs attributes on copy/move operations (#4532)
    - Change name of temporary directory: make it unique for each run (#4535)
    - Hide password in file operation progress dialog (#4541)
    - Support reget in file move operation (#4563)
    - Implement nanosecond precision timestamps on non-Linux (macOS, BSD, AIX, Solaris) (#4563)
    - Remove remaining mmap code to simplify maintenance (#3960) 
  - VFS
    - extfs: support unrar-7 (#4518) 
  - Editor
    - Improve syntax highlighting:
    -     C and C++ (MidnightCommander?/mc#195, #4556) 
  - Viewer
  - Diff viewer
    - Add man page mcdiff.1 (#4224) 
  - Misc
    - Code cleanup (#4524)
    - New skins
      - xoria256-thin, xoria256root-thin (#4530)
      - modarcon16-defbg-thin, modarcon16-thin, modarcon16root-defbg-thin, modarcon16root-thin (#4530)
      - modarin256-defbg-thin, modarin256-thin, modarin256root-defbg-thin, modarin256root-thin (#4530)
      - julia256root (#4536) 
    - mc.ext.ini: clarify escaping of spaces and parenthesis (#4502) 
  - Fixes
    - External editor does not work with arguments in $EDITOR (#4533)
    - fish shell: strings " cd (printf '%b' ... " in history (#4521)
    - Redundant back slashes for autocomplete (#4292)
    - subshell: call execl with argv[0] that is not an actual path to Bash (#4549)
    - mcedit: php.syntax: comment highlight from start of light only (#4519)
    - mcedit: wrong replacement using regular expressions with begin or end of line (#4525, #4526)
    - mcedit: losing column position when navigating up/down (MidnightCommander?/mc#194)
    - mcedit: macro deletes text (#4540)
    - mcedit: macros are applied to the pasted text (#4562)
    - extfs: iso9660: xorriso is slow to open an ISO image (#3570, #4567)
    - extfs: u7z: wrong add of nested directories to archive (#4559)
    - extfs: segfault on enter to deleted archive (#4560)
    - tar: segfault on copy files from archive (#4561)
    - man: typo (#4550) 
- Remove mc-extfs-iso9660-xorriso.patch patch which doesn't apply anymore.
- Other patches reapplied.

OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=160
2024-09-17 15:26:47 +00:00

112 lines
3.3 KiB
Diff

---
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}"
;;
*)