aboutsummaryrefslogtreecommitdiff
path: root/chromium
diff options
context:
space:
mode:
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 "$@"