mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 04:35:30 +08:00
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.
9 lines
281 B
Bash
9 lines
281 B
Bash
#!/bin/sh
|
|
|
|
if [ "${DISABLE_WAYLAND:-0}" = 0 ] && \
|
|
[ "${GDK_BACKEND:-wayland}" = "wayland" ] && \
|
|
[ "$(snapctl get wayland-native)" = "true" ]; then
|
|
args="--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
|
|
fi
|
|
|
|
exec "$SNAP/usr/bin/mailspring" $args "${@}"
|