Mailspring/snap/launcher
Marco Trevisan bbfd589e09 snap: Run as native wayland client if possible
The new electron versions support wayland natively, this implies
that mailspring can use the native rendering when in a wayland
desktop environment, bringing various benefits including a better
rendering in high DPI displays.

To enable this electron still requires some flags, so add a wrapper
launcher that is used to enable them unless wayland isn't explicitly
disabled.
2025-04-15 15:26:59 +02:00

9 lines
262 B
Bash

#!/bin/sh
if [ -n "$WAYLAND_DISPLAY" ] && \
[ "${DISABLE_WAYLAND:-0}" = 0 ] && \
[ "${GDK_BACKEND:-wayland}" = "wayland" ]; then
args="--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
fi
exec "$SNAP/usr/bin/mailspring" $args "${@}"