From 280856b1acc1db93ae8bc9e82b0affc837b3cff3 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 25 Jul 2024 17:06:32 -0400 Subject: [PATCH] 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. --- mailcap-epiphany | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.2