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 /chromium | |
| parent | 52ee08731eeebed097cf2d17c76597d7ded5b038 (diff) | |
.
Diffstat (limited to 'chromium')
| -rwxr-xr-x | chromium/chromium | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/chromium b/chromium/chromium index 8498b76..1e74a62 100755 --- a/chromium/chromium +++ b/chromium/chromium @@ -1,6 +1,9 @@ #!/bin/sh -exec /usr/bin/chromium \ - $([ -n "$WAYLAND_DISPLAY" ] && \ - echo "--enable-features=UseOzonePlatform --ozone-platform=wayland") \ - "$@" +if [ -n "$WAYLAND_DISPLAY" ]; then + args="--enable-features=UseOzonePlatform --ozone-platform=wayland" +else + args="" +fi + +exec /usr/bin/chromium $args "$@" |
