#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>

if [ -x /snap/bin/firefox ]; then
  exec /snap/bin/firefox "$@"
fi

# Force use of the XDG desktop portal to get tighter Plasma integration.

export GTK_USE_PORTAL=1
exec /usr/bin/firefox "$@"
