Skip to content

Commit 8e71cb6

Browse files
committed
snap: Make native wayland client support configurable
Make possible for users to toggle the native wayland client by using snap set mailspring wayland-native=false
1 parent 08782c7 commit 8e71cb6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

snap/hooks/configure

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
wayland_native="$(snapctl get wayland-native)"
5+
if [[ -z "$wayland_native" ]]; then
6+
snapctl set wayland-native=true
7+
fi

snap/launcher

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
if [ -n "$WAYLAND_DISPLAY" ] && \
44
[ "${DISABLE_WAYLAND:-0}" = 0 ] && \
5-
[ "${GDK_BACKEND:-wayland}" = "wayland" ]; then
5+
[ "${GDK_BACKEND:-wayland}" = "wayland" ] && \
6+
[ "$(snapctl get wayland-native)" != "false" ]; then
67
args="--enable-features=WaylandWindowDecorations --ozone-platform=wayland --use-gl=desktop"
78
fi
89

0 commit comments

Comments
 (0)