2023-01-12 13:42:18 +00:00
|
|
|
# system wide chromium flags
|
2023-04-05 11:35:32 +00:00
|
|
|
CHROMIUM_FLAGS=""
|
|
|
|
CHROMIUM_FLAGS+=" --disable-features=AudioServiceSandbox,UseChromeOSDirectVideoDecoder,AllowQt"
|
|
|
|
CHROMIUM_FLAGS+=" --enable-features=VaapiVideoDecoder,VaapiVideoEncoder"
|
2023-01-12 13:42:18 +00:00
|
|
|
|
2023-02-06 17:28:56 +00:00
|
|
|
if [ "$XDG_SESSION_TYPE" == "wayland" ] || [[ $WAYLAND_DISPLAY ]] ; then
|
2023-04-05 11:35:32 +00:00
|
|
|
CHROMIUM_FLAGS+=" --use-gl=egl"
|
2023-02-06 17:28:56 +00:00
|
|
|
fi
|