aboutsummaryrefslogtreecommitdiff
path: root/chromium
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2024-01-08 18:50:10 +0100
committerbozo.kopic <bozo@kopic.xyz>2024-01-08 18:50:10 +0100
commit39abd6b00a427ac4d33564d9a00cde35abe90be8 (patch)
treec92ea389ab832929263612b556f8f141feb9ea1a /chromium
parent52ee08731eeebed097cf2d17c76597d7ded5b038 (diff)
.
Diffstat (limited to 'chromium')
-rwxr-xr-xchromium/chromium11
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 "$@"