From 39abd6b00a427ac4d33564d9a00cde35abe90be8 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Mon, 8 Jan 2024 18:50:10 +0100 Subject: . --- drawio/drawio | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'drawio') diff --git a/drawio/drawio b/drawio/drawio index d38d17f..4bb3cd9 100755 --- a/drawio/drawio +++ b/drawio/drawio @@ -4,7 +4,10 @@ # let argv = process.argv; # argv = argv.filter(i => !i.startsWith('--enable-features=') && !i.startsWith('--ozone-platform=')); -exec electron25 \ - $([ -n "$WAYLAND_DISPLAY" ] && \ - echo "--enable-features=UseOzonePlatform --ozone-platform=wayland") \ - /usr/lib/draw.io "$@" +if [ -n "$WAYLAND_DISPLAY" ]; then + args="--enable-features=UseOzonePlatform --ozone-platform=wayland" +else + args="" +fi + +exec electron25 $args /usr/lib/draw.io "$@" -- cgit v1.2.3-70-g09d2