#!/usr/bin/sh
# Wrapper script for Signal.

# The signal-desktop binary has a RUNPATH of its origin folder.
# So remove the RUNPATH from the binary, put all the libraries in its private
# folder and make sure that only the authy binary can access them.

export LD_LIBRARY_PATH="/usr/lib64/Signal-Desktop${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
exec /usr/lib64/Signal-Desktop/signal-desktop "$@"
