mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 20:54:26 +08:00
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.
9 lines
262 B
Bash
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 "${@}"
|