Skip to content

Commit c43cfc8

Browse files
committed
detect pelorus and flag accessibility
1 parent b7b7cd4 commit c43cfc8

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

root/usr/bin/opera

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,23 @@ if [ -f /usr/lib/x86_64-linux-gnu/opera/localization/${LANG}.pak ]; then
1515
LANG_CLI="--lang=${LANG}"
1616
fi
1717

18-
${BIN} --password-store=basic --no-sandbox --test-type ${LANG_CLI} "$@"
18+
# Wayland check
19+
if ls -l /dev/dri/* > /dev/null 2>&1; then
20+
if pgrep labwc > /dev/null 2>&1; then
21+
WAYLAND="--ozone-platform=wayland"
22+
fi
23+
fi
24+
25+
# Pelorus accessibility
26+
if [ "${PELORUS,,}" == "true" ]; then
27+
ACCESSIBILITY="--force-renderer-accessibility"
28+
fi
29+
30+
${BIN} \
31+
--password-store=basic \
32+
--no-sandbox \
33+
--test-type \
34+
${WAYLAND} \
35+
${ACCESSIBILITY} \
36+
${LANG_CLI} \
37+
"$@"

0 commit comments

Comments
 (0)