We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9c357 commit 4262434Copy full SHA for 4262434
snap/local/opt/Mattermost/fix-hardware-accel-with-no-renderer
@@ -18,7 +18,7 @@ CONFIG_PATH="${SNAP_USER_DATA}/.config/Mattermost/config.json"
18
19
# If the rendering device string is 'llvmpipe' then it's likely that the
20
# app will crash with hardware acceleration enabled.
21
-if glxinfo | grep -q llvmpipe; then
+if [[ "$(glxinfo)" =~ "llvmpipe" ]]; then
22
# Disable hardware acceleration in the configuration file.
23
if [[ -f "$CONFIG_PATH" ]]; then
24
jq '.enableHardwareAcceleration = false' "$CONFIG_PATH" > "$CONFIG_PATH.tmp"
0 commit comments