Security-Update:
- Midnight Commander 4.8.27:
* Core
- Minimal version of Autoconf is 2.64 (#3603)
- Minimal version of Automake is 1.12 (#3986)
- Minimal version of Gettext is 0.18.2 (#3603)
- Minimal version of libssh2 is 1.2.8 (#4259)
- Reimplement version detection (#3603, #4249)
- Significantly reduce rebuilt time after version change (#2252, #4266)
- Drop automatic migration of configuration from ~/.mc to XDG-based directories (#3682)
- zsh: support custom configuration file: ~/.local/share/mc/.zshrc (#4203)
- Widgets: implement WST_VISIBLE state to show/hide widgets (#2919)
- Find File: add Follow symlinks option (#2020)
* VFS
- extfs: support unrar-6 (#4154)
- extfs: support official 7z binary (7zz) (#4239)
- ftpfs: apply file list parser from lftp project (#2841, #3174)
* Editor
- Word completion: get candidates from all open files (#4160)
- etags: get rid of hardcoded list length and window width (#4132)
- Update syntax files:
- python (#4140)
- Add syntax highlighting:
- Verilog and SystemVerilog? header files (#4215)
- JSON (#4250)
- openrc-run scripts (#4246)
* Viewer
* Diff viewer
* Misc
- Code clean up (#4179, #4173, #4269)
- Filehighlight of c++ and h++ files as sources (#4194)
- Filehighlight of JSON files as documents (#4250)
- Support of alacritty terminal emulator (https://github.com/alacritty/alacritty) (#4248)
- Support of foot terminal emulator (https://codeberg.org/dnkl/foot) (#4251)
- Support of (alt+)shift+arrow keys in st terminal emulator (st.suckless.org) (#4267)
- Mouse support in screen: don't check variable (#4233)
- mc.ext: support fb2 e-books (#4167)
- ext.d: use mediainfo to view info about various media files (#4167)
- Remove OS/distro-specific package-related stuff from source tree (#4217)
* Fixes
- FTBFS against NCurses on OS X 10.9.5 (#4181)
- Segfault on dialog before panels get visible (#4244)
- Crash if shadow is out of screen (build against NCurses) (#4192)
- Crash in search (#4222)
- Crash on startup with enabled subshell in FreeBSD (workaround) (#4213)
- Hang on start randomly with zsh as subshell (#4198)
- If command line is invisible it's partially displayed (#4182)
- Broken handling of zip archives (#4180, #4183)
- Broken handling of jar files as zip archives (#4223)
- Timestamps of symlinks, sockets, fifos, etc are not preserved after copy/move (#3985)
- %view action in the user menu doesn't work on no-exec filesystem (#4242)
- Hardlinks are not colored by file type or extension (#3375)
- mcedit: silent macro makes terminal disrupted (#4171)
- mcedit: disrupting of TAGS file path (#4207)
- vfs: unable to browse compressed tar archives (#4191)
- sftpfs vfs: CVE-2021-36370: server fingerprint isn't verified
(discovered by AUT-milCERT during an audit of open source software) (#4259)
- ftpfs vfs: month of file is always January (#4260)
- Tests: log files are written by libcheck and automake simultaneously (#3986)
- Rebase mc-ext-audio.patch.
- Rebase mc-extd-sound.patch.
OBS-URL: https://build.opensuse.org/request/show/915746
OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=138
66 lines
1.7 KiB
Diff
66 lines
1.7 KiB
Diff
Index: misc/ext.d/sound.sh
|
|
===================================================================
|
|
--- misc/ext.d/sound.sh.orig
|
|
+++ misc/ext.d/sound.sh
|
|
@@ -6,22 +6,40 @@
|
|
action=$1
|
|
filetype=$2
|
|
|
|
-[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open"
|
|
+[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="_xdg_open"
|
|
+
|
|
+_xdg_open()
|
|
+{
|
|
+ if [ -n "$DISPLAY" ] && type -p gmplayer ; then
|
|
+ gmplayer "${MC_EXT_FILENAME}"
|
|
+ elif type -p mplayer ; then
|
|
+ mplayer "${MC_EXT_FILENAME}"
|
|
+ else
|
|
+ xdg-open "${MC_EXT_FILENAME}"
|
|
+ fi
|
|
+}
|
|
|
|
do_view_action() {
|
|
filetype=$1
|
|
|
|
+ if type -p mediainfo >/dev/null 2>&1 ; then
|
|
+ mediainfo "${MC_EXT_FILENAME}"
|
|
+ return $?
|
|
+ fi
|
|
+
|
|
case "${filetype}" in
|
|
common)
|
|
mediainfo "${MC_EXT_FILENAME}"
|
|
;;
|
|
-
|
|
mp3)
|
|
- mpg123 -vtn1 "${MC_EXT_FILENAME}" 2>&1 | \
|
|
- sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
|
|
+ if type -p mpg123 ; then
|
|
+ mpg123 -vtn1 "${MC_EXT_FILENAME}" 2>&1 | \
|
|
+ sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
|
|
+ return 0
|
|
+ fi
|
|
;;
|
|
ogg)
|
|
- ogginfo "${MC_EXT_FILENAME}"
|
|
+ type -p ogginfo && ogginfo "${MC_EXT_FILENAME}" && return 0
|
|
;;
|
|
opus)
|
|
opusinfo "${MC_EXT_FILENAME}"
|
|
@@ -29,11 +47,11 @@ do_view_action() {
|
|
wma)
|
|
mplayer -quiet -slave -frames 0 -vo null -ao null -identify "${MC_EXT_FILENAME}" 2>/dev/null | \
|
|
tail +13 || file "${MC_EXT_FILENAME}"
|
|
- ;;
|
|
- *)
|
|
- cat "${MC_EXT_FILENAME}"
|
|
+ return $?
|
|
;;
|
|
esac
|
|
+
|
|
+ mplayer -identify -vo null -ao null -frames 0 "${MC_EXT_FILENAME}" 2>&1 | sed -n '/^ID_/p'
|
|
}
|
|
|
|
do_open_action() {
|