#!/bin/sh

if test -d /usr/lib/jvm/jre-17/bin; then
	export PATH=/usr/lib/jvm/jre-17/bin:"$PATH"
fi

if [ "${XDG_SESSION_TYPE:-}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
	exec /usr/lib64/mostechmail/mostechmail "$@"
else
export MOZ_DISABLE_WAYLAND=1
	exec /usr/lib64/mostechmail/mostechmail "$@"
fi

