Skip to content

Commit 119e847

Browse files
committed
snap: Make native wayland client support configurable
Make possible for users to enable the native wayland client by using snap set mailspring wayland-native=true By default mailspring will use xwayland, but the support can be toggled by users with the said command.
1 parent bbfd589 commit 119e847

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
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=false
7+
fi

snap/launcher

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

3-
if [ -n "$WAYLAND_DISPLAY" ] && \
4-
[ "${DISABLE_WAYLAND:-0}" = 0 ] && \
5-
[ "${GDK_BACKEND:-wayland}" = "wayland" ]; then
3+
if [ "${DISABLE_WAYLAND:-0}" = 0 ] && \
4+
[ "${GDK_BACKEND:-wayland}" = "wayland" ] && \
5+
[ "$(snapctl get wayland-native)" = "true" ]; then
66
args="--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
77
fi
88

0 commit comments

Comments
 (0)