diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2024-01-08 18:50:10 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2024-01-08 18:50:10 +0100 |
| commit | 39abd6b00a427ac4d33564d9a00cde35abe90be8 (patch) | |
| tree | c92ea389ab832929263612b556f8f141feb9ea1a /drawio | |
| parent | 52ee08731eeebed097cf2d17c76597d7ded5b038 (diff) | |
.
Diffstat (limited to 'drawio')
| -rwxr-xr-x | drawio/drawio | 11 |
1 files changed, 7 insertions, 4 deletions
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 "$@" |
