Mailspring/snap/launcher
Marco Trevisan 119e847545 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.
2025-04-15 15:28:07 +02:00

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 "${@}"