Skip to content

Commit c14f90d

Browse files
authored
feat: Enable wayland (#135)
* feat: Enable wayland
1 parent 14e3eb2 commit c14f90d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

snap/local/launcher.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
#!/bin/sh
2-
exec "$SNAP/opt/Mattermost/mattermost-desktop" --no-sandbox --disable-seccomp-filter-sandbox --disable-features=GlobalShortcutsPortal "$@"
2+
3+
if [ -n "$WAYLAND_DISPLAY" ] && [ -z "$DISABLE_WAYLAND" ]; then
4+
WAYLAND_OPTS="--enable-features=UseOzonePlatform --ozone-platform-hint=auto"
5+
fi
6+
7+
exec "$SNAP/opt/Mattermost/mattermost-desktop" --no-sandbox --disable-seccomp-filter-sandbox --disable-features=GlobalShortcutsPortal "${WAYLAND_OPTS:-}" "$@"

0 commit comments

Comments
 (0)