diff --git a/containers/base/config/bin/host b/containers/base/config/bin/host index f8fe5ed..f66d0aa 100755 --- a/containers/base/config/bin/host +++ b/containers/base/config/bin/host @@ -1,4 +1,6 @@ #!/bin/bash -export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/bus -host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" \ - $([ "$(basename "$0")" != "host" ] && echo "$(basename "$0")") "$@" +export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus" + +cmd="${0##*/}" +[[ "$cmd" == "host" ]] && unset cmd +exec host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" ${cmd:+"$cmd"} "$@"