Skip to content

Commit

Permalink
Merge pull request PrismLauncher#2953 from TheKodeToad/portable-fix
Browse files Browse the repository at this point in the history
Fix removing portable.txt on Linux portable build
  • Loading branch information
Trial97 authored Oct 21, 2024
2 parents b049e92 + f3f4c44 commit 671d527
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion launcher/Launcher.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ if [ "x$DEPS_LIST" = "x" ]; then
# Just to be sure...
chmod +x "${LAUNCHER_DIR}/bin/${LAUNCHER_NAME}"

ARGS=("${LAUNCHER_DIR}/${LAUNCHER_NAME}" "${LAUNCHER_DIR}/bin/${LAUNCHER_NAME}")

if [ -f portable.txt ]; then
ARGS+=("-d" "${LAUNCHER_DIR}")
fi

ARGS+=("$@")

# Run the launcher
exec -a "${LAUNCHER_DIR}/${LAUNCHER_NAME}" "${LAUNCHER_DIR}/bin/${LAUNCHER_NAME}" -d "${LAUNCHER_DIR}" "$@"
exec -a "${ARGS[@]}"

# Run the launcher in valgrind
# valgrind --log-file="valgrind.log" --leak-check=full --track-origins=yes "${LAUNCHER_DIR}/bin/${LAUNCHER_NAME}" -d "${LAUNCHER_DIR}" "$@"
Expand Down

0 comments on commit 671d527

Please sign in to comment.