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

# The authy 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/authy${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
exec /usr/lib64/authy/authy --disable-gpu --disable-seccomp-filter-sandbox "$@"
