diff options
author | Vince | 2021-08-02 08:37:47 +0200 |
---|---|---|
committer | Vince | 2021-08-02 08:37:47 +0200 |
commit | 4ddbd16188cb7ffab569f65da52bb3907798d243 (patch) | |
tree | df00522168558f16ca3433f7737e4d4b68759be6 /launcher.sh | |
download | aur-4ddbd16188cb7ffab569f65da52bb3907798d243.tar.gz |
Added all the files
Diffstat (limited to 'launcher.sh')
-rw-r--r-- | launcher.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/launcher.sh b/launcher.sh new file mode 100644 index 000000000000..e19fa7fd82f3 --- /dev/null +++ b/launcher.sh @@ -0,0 +1,19 @@ +#!/bin/bash +unset WINEPREFIX +if [ -z "$XDG_DATA_DIR" ]; then + XDG_DATA_DIR="$HOME/.local/share" +fi +if [ ! -d "$XDG_DATA_DIR/rexpaint" ]; then + if [ -z "$RP_INSTALL_DIR" ]; then + RP_INSTALL_DIR="/usr/share/rexpaint" + fi + mkdir -p "$XDG_DATA_DIR/rexpaint" + cd "$XDG_DATA_DIR/rexpaint" + ln -s "$RP_INSTALL_DIR/REXPaint.exe" + ln -s "$RP_INSTALL_DIR"/*.dll . + ln -s "$RP_INSTALL_DIR/rex" + cp -r "$RP_INSTALL_DIR/images" . + cp -r "$RP_INSTALL_DIR/data" . +fi +cd "$XDG_DATA_DIR/rexpaint" +WINEDEBUG=-all wine "$XDG_DATA_DIR/rexpaint/REXPaint.exe" "$@" |