> From: Max Nikulin <maniku...@gmail.com>
> Date: Sat, 28 Jun 2025 17:51:24 +0700
>

> [... 35 lines elided]

> You can try to evaluate (you may use specific video player instead of
> xdg-open)
>
> (setq movie "~/big_buck_bunny.webm")
> (setq movie-cmd
>       (format "xdg-open %s" (shell-quote-argument
>                            (expand-file-name movie))))
> ; should work
> (call-process "xdg-open" nil 0 nil movie)

Probably its a typo,

; didn’t work
(call-process "xdg-open" nil 0 nil movie)

; works
(call-process "xdg-open" nil 0 nil (expand-file-name movie))

> ; old xdg-open silent failure due to SIGHUP
> ; when viewer goes to background
> (let ((process-connection-type 'pty))
>   (start-process-shell-command "xdg-open" nil movie-cmd))
> ; current `org-open-file' behavior
> (let ((process-connection-type nil))
>   (start-process-shell-command "xdg-open" nil movie-cmd))

Both these doesn’t start mpv.

--
Regards,
Anush

Reply via email to