mirror of
https://git.suyu.dev/suyu/AppImageKit-checkrt.git
synced 2026-01-05 05:58:10 +01:00
checkrt tool rewritten
This commit is contained in:
commit
808668a0ca
13 changed files with 1633 additions and 0 deletions
24
AppRun
Executable file
24
AppRun
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# add your command to execute here
|
||||
exec=
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
if [ "x$exec" = "x" ]; then
|
||||
exec="$(sed -n 's|^Exec=||p' *.desktop | head -1)"
|
||||
fi
|
||||
if [ -x "./usr/optional/checkrt" ]; then
|
||||
extra_libs="$(./usr/optional/checkrt)"
|
||||
fi
|
||||
if [ -n "$extra_libs" ]; then
|
||||
export LD_LIBRARY_PATH="${extra_libs}${LD_LIBRARY_PATH}"
|
||||
if [ -e "$PWD/usr/optional/exec.so" ]; then
|
||||
export LD_PRELOAD="$PWD/usr/optional/exec.so:${LD_PRELOAD}"
|
||||
fi
|
||||
fi
|
||||
|
||||
#echo ">>>>> $LD_LIBRARY_PATH"
|
||||
#echo ">>>>> $LD_PRELOAD"
|
||||
|
||||
./usr/bin/$exec "$*"
|
||||
exit $?
|
||||
Loading…
Add table
Add a link
Reference in a new issue