From d07749824010f38de33b33b5d1f4036d67183fb1 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 12 Aug 2019 00:19:21 +0100 Subject: Detect whether to run wl/x11 at runtime --- src/imv.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 src/imv.sh (limited to 'src') diff --git a/src/imv.sh b/src/imv.sh new file mode 100755 index 0000000..c275633 --- /dev/null +++ b/src/imv.sh @@ -0,0 +1,7 @@ +#!/usr/bin/sh + +if [ -n "${WAYLAND_DISPLAY}" ]; then + exec imv-wl "$@" +else + exec imv-x11 "$@" +fi -- cgit v1.2.3