#!/bin/sh
# Copyright (c) 2026 Castagnier Mickael (gullradriel). All rights reserved.
# SPDX-License-Identifier: LicenseRef-Proprietary
# Launcher installed as /usr/bin/fissure by the .deb. The application and its
# bundled libraries live under /opt/fissure; exec the real binary there (so
# /proc/self/exe resolves to it and resources/plugins are found next to it),
# with the bundled library directory ahead of the system search path.
exec env LD_LIBRARY_PATH="/opt/fissure/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
    /opt/fissure/fissure "$@"
