aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-12 00:19:21 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-12 00:19:21 +0100
commitd07749824010f38de33b33b5d1f4036d67183fb1 (patch)
tree48785037842d2a05ec78e878d3484906e8b2bfc0 /src
parent2e424897218eac66c8e9e326cc07641eacf1a810 (diff)
downloadimv-d07749824010f38de33b33b5d1f4036d67183fb1.tar.gz
Detect whether to run wl/x11 at runtime
Diffstat (limited to 'src')
-rwxr-xr-xsrc/imv.sh7
1 files changed, 7 insertions, 0 deletions
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