From 39abd6b00a427ac4d33564d9a00cde35abe90be8 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Mon, 8 Jan 2024 18:50:10 +0100 Subject: . --- chromium/chromium | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'chromium') 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 "$@" -- cgit v1.2.3-70-g09d2