From: Michael Orlitzky Date: Thu, 25 Jul 2024 21:06:32 +0000 (-0400) Subject: mailcap-epiphany: support wayland X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=280856b1acc1db93ae8bc9e82b0affc837b3cff3;p=mutt.git mailcap-epiphany: support wayland The $DISPLAY variable won't be defined on Wayland, so the GUI check will always fail. Now we try $WAYLAND_DISPLAY too. --- diff --git a/mailcap-epiphany b/mailcap-epiphany index 11c4c9a..e490a7e 100644 --- a/mailcap-epiphany +++ b/mailcap-epiphany @@ -6,4 +6,4 @@ # emails. We ignore errors in "tidy" because we expect a bunch of HTML # warnings to remain. The weird subshell construct is there because I # don't know how to escape a semicolon. -text/html; (tidy -quiet -modify %s || true) && /usr/bin/epiphany %s; description=HTML Text; test=test -n "$DISPLAY"; needsterminal; +text/html; (tidy -quiet -modify %s || true) && /usr/bin/epiphany %s; description=HTML Text; test=test -n "${DISPLAY}${WAYLAND_DISPLAY}"; needsterminal;