2021-11-04 21:11:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH"
|
2022-04-18 05:22:34 +00:00
|
|
|
|
|
|
|
# use system wayland if available otherwise use the appimage provided wayland
|
|
|
|
if [[ $(ldconfig -p | grep libwayland-client | wc -l) -lt 1 ]]; then
|
|
|
|
export LD_LIBRARY_PATH="$APPDIR/usr/lib/wayland:$LD_LIBRARY_PATH"
|
|
|
|
fi
|
|
|
|
|
2021-11-04 21:11:31 +00:00
|
|
|
export BINARY_NAME=$(basename "$ARGV0")
|
|
|
|
if [[ ! -e "$PWD/$BINARY_NAME.config" ]]; then
|
|
|
|
mkdir "$PWD/$BINARY_NAME.config"
|
|
|
|
fi
|
|
|
|
export XDG_CONFIG_HOME="$PWD/$BINARY_NAME.config"
|
|
|
|
|
2021-11-08 13:55:11 +00:00
|
|
|
mkdir -p "$HOME"/.local/share/icons/hicolor/scalable/apps && cp "$APPDIR"/PCSX2.png "$HOME"/.local/share/icons/hicolor/scalable/apps
|