flatpak/launch-script.sh
2024-07-26 00:29:44 +02:00

19 lines
No EOL
419 B
Bash

#!/bin/bash
export TMPDIR=$XDG_CACHE_HOME/tmp
MOZ_LAUNCHER="$MOZ_DIST_BIN/launch-script.sh"
##
## Enable Wayland backend?
##
if ! [ $MOZ_DISABLE_WAYLAND ] && [ "$WAYLAND_DISPLAY" ]; then
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
## Enable Wayland on KDE/Sway
##
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
fi
exec /app/bin/zen "$@"