Use mpv as default to play media files from dired

Seems to be more robust nowadays than mplayer.
This commit is contained in:
Daniel Borchmann 2026-03-22 08:30:36 +01:00
parent dea0b23e69
commit 45e5e5a9fc
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -2275,7 +2275,7 @@ Note that this workaround is incomplete, as explained in this comment."
("<tab>" . dired-subtree-toggle) ("<tab>" . dired-subtree-toggle)
("<C-tab>" . dired-subtree-cycle)) ("<C-tab>" . dired-subtree-cycle))
:init (progn :init (progn
(setq dired-dwim-target t (setopt dired-dwim-target t
dired-listing-switches "-ahlvF" dired-listing-switches "-ahlvF"
dired-ls-F-marks-symlinks t dired-ls-F-marks-symlinks t
dired-hide-details-hide-information-lines nil dired-hide-details-hide-information-lines nil
@ -2296,7 +2296,7 @@ Note that this workaround is incomplete, as explained in this comment."
dired-movement-style 'bounded dired-movement-style 'bounded
dired-filename-display-length nil) dired-filename-display-length nil)
(setq dired-guess-shell-alist-user (setopt dired-guess-shell-alist-user
'(("\\.pdf\\'" "evince") '(("\\.pdf\\'" "evince")
("\\.ps\\'" "evince") ("\\.ps\\'" "evince")
("\\.\\(?:djvu\\|eps\\)\\'" "evince") ("\\.\\(?:djvu\\|eps\\)\\'" "evince")
@ -2304,7 +2304,7 @@ Note that this workaround is incomplete, as explained in this comment."
("\\.\\(?:xcf\\)\\'" "gimp") ("\\.\\(?:xcf\\)\\'" "gimp")
("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'" ("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'"
"vlc") "vlc")
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mplayer") ("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mpv")
("\\.docx?\\'" "loffice")))) ("\\.docx?\\'" "loffice"))))
:config (progn :config (progn
(put 'dired-find-alternate-file 'disabled nil) (put 'dired-find-alternate-file 'disabled nil)