From 93452494d1d0437487d7094c8ccdf6cdb47bb8c4 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sun, 17 Mar 2024 14:04:14 +0100 Subject: condition-case for mpv-start --- lisp/mastodon-tl.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 0bfa613..a35ae5e 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1365,7 +1365,11 @@ in which case play first video or gif from current toot." (if (mastodon-tl--media-video-p type) (progn (message "'q' to kill mpv.") - (mpv-start "--loop" url)) + (condition-case x + (mpv-start "--loop" url) + (void-function + (message "Looks like mpv.el not installed. Error: %s" + (error-message-string x))))) (message "no moving image here?")) (message "no moving image here?")))) -- cgit v1.2.3