- Add absolute & relative command path support,

- Add spaces support in Application Dir & Command.
This commit is contained in:
2025-04-14 13:53:12 +02:00
parent 5ab68d4e8e
commit 5dfd1063e4
6 changed files with 30 additions and 15 deletions

View File

@@ -32,6 +32,8 @@ shift
APPL_DIR=$(realpath ${APPL_DIR})
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
export GROUP_NAME=$(id -gn)
@@ -41,6 +43,6 @@ cd "${APPL_HOME_DIR}"
sbin/docker_mk_env
docker compose run --rm x11-pulse /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} ${APPL_DIR}/${APPL_NAME} $*
docker compose run --rm x11-pulse /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} "${APPL_DIR}" "${APPL_NAME}" "$@"
docker compose down