From 2fdb56a981ac4779e3fa26c8e4996b61c5d6ec63 Mon Sep 17 00:00:00 2001 From: bd Date: Wed, 23 Oct 2024 22:38:34 -0400 Subject: dired mpv/zathura---expand-file-name to avoid failures --- .config/emacs/modules/bd--files.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/emacs/modules/bd--files.el b/.config/emacs/modules/bd--files.el index 712b2c8..bef4f07 100644 --- a/.config/emacs/modules/bd--files.el +++ b/.config/emacs/modules/bd--files.el @@ -31,7 +31,7 @@ (defun bd/zathura (file) "Open FILE with zathura" (interactive) - (start-process (concat "zathura (" (file-name-base file) ")") nil "zathura" file)) + (start-process (concat "zathura (" (file-name-base file) ")") nil "zathura" (expand-file-name file))) (defun bd/pdf-find-file-wrapper (f &rest args) "Wrapper around F (find-file), passing ARGS." @@ -46,7 +46,7 @@ ;; video (defun bd/mpv (file) "Open FILE with mpv" - (start-process (concat "mpv (" (file-name-base file) ")") nil "mpv" "--force-window=yes" file)) + (start-process (concat "mpv (" (file-name-base file) ")") nil "mpv" "--force-window=yes" (expand-file-name file))) (defun bd/video-find-file-wrapper (f &rest args) "Wrapper around F (find-file), passing ARGS." -- cgit v1.2.3