Skip to content

Commit c4cf668

Browse files
committed
add gpu check for ozone webcord
1 parent d96b477 commit c4cf668

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

root/usr/bin/webcord

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
BIN=/usr/bin/webcord-real
44

55
# Wayland check
6-
if pgrep labwc > /dev/null 2>&1; then
7-
WAYLAND="--ozone-platform=wayland"
6+
if ls -l /dev/dri/* > /dev/null 2>&1; then
7+
if pgrep labwc > /dev/null 2>&1; then
8+
WAYLAND="--ozone-platform=wayland"
9+
fi
810
fi
911

1012
${BIN} --password-store=basic ${WAYLAND} --no-sandbox "$@"

0 commit comments

Comments
 (0)