Skip to content

Commit 4262434

Browse files
committed
fix: change the gpu accel detection means
1 parent fb9c357 commit 4262434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snap/local/opt/Mattermost/fix-hardware-accel-with-no-renderer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CONFIG_PATH="${SNAP_USER_DATA}/.config/Mattermost/config.json"
1818

1919
# If the rendering device string is 'llvmpipe' then it's likely that the
2020
# app will crash with hardware acceleration enabled.
21-
if glxinfo | grep -q llvmpipe; then
21+
if [[ "$(glxinfo)" =~ "llvmpipe" ]]; then
2222
# Disable hardware acceleration in the configuration file.
2323
if [[ -f "$CONFIG_PATH" ]]; then
2424
jq '.enableHardwareAcceleration = false' "$CONFIG_PATH" > "$CONFIG_PATH.tmp"

0 commit comments

Comments
 (0)