#!/bin/sh
# (tpg) do not create new user profiles on each upgrade, use exsting one
export MOZ_LEGACY_PROFILES=1

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