commit 7b285bb32fc4c0c20fe33db642ca30f61d103138
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Feb 20 16:05:44 2022 +0000
Try to improve wayland support
chromium-freeworld.sh | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/chromium-freeworld.sh b/chromium-freeworld.sh
index 2681e04..bb3f32b 100644
--- a/chromium-freeworld.sh
+++ b/chromium-freeworld.sh
@@ -57,4 +57,9 @@ CHROMIUM_DISTRO_FLAGS=" --enable-plugins \
--disable-features=AudioServiceSandbox \
--enable-sync"
+# This provides a much better experience on Wayland.
+if [ "$XDG_SESSION_TYPE" == "wayland" ] || [[ $WAYLAND_DISPLAY ]] ;
then
+ CHROMIUM_DISTRO_FLAGS="--ozone-platform=wayland $CHROMIUM_DISTRO_FLAGS"
+fi
+
exec -a "$0" "@@CHROMIUMDIR@@/$(basename "$0" | sed
's/\.sh$//')" $CHROMIUM_DISTRO_FLAGS "$@"
Show replies by date