diff --git a/host/.xsession b/host/.xsession index a389bf3..cdeee7c 100755 --- a/host/.xsession +++ b/host/.xsession @@ -10,15 +10,10 @@ mkdir -p "/var/tmp/$USER" podman stop -t 0 arch podman rm -f arch -$distrobox create --nvidia -i ghcr.io/alexwright1324/fng:latest -n arch -I --no-entry -d | sed -e '\#--volume "'$HOME'":#d' -e '\#--home "'$HOME'"#c\--home "/home/fng"' -e '\#--env "HOME='$HOME'"#c\--env "HOME=/home/fng"' | tr '\n' ' ' | source /dev/stdin +$distrobox create --nvidia -i ghcr.io/alexwright1324/fng:latest -n arch -I --no-entry --pre-init-hooks "mkdir -p /usr/local/bin && chown -R $(id -u):$(id -g) /home/fng" -d | sed -e '\#--volume "'$HOME'":#d' -e '\#--home "'$HOME'"#c\--home "/home/fng"' -e '\#:/run/host/#d' | tr '\n' ' ' | source /dev/stdin podman start arch -# Issue with user-integration??? -podman exec --interactive --detach-keys="" --user='root' --workdir="/home/fng" --env "CONTAINER_ID=arch" arch mkdir -p /usr/local/bin -# Own Home Directory -podman exec --interactive --detach-keys="" --user='root' --workdir="/home/fng" --env "CONTAINER_ID=arch" arch chown -R $(id -u):$(id -g) /home/fng -# Start KDE -podman exec --interactive --detach-keys="" --user=$USER --workdir="/home/fng" --env "CONTAINER_ID=arch" --env "DISPLAY=${DISPLAY}" arch dbus-run-session startplasma-x11 +podman exec --interactive --detach-keys="" --user=$USER --workdir="/home/fng" --env "CONTAINER_ID=arch" --env "DISPLAY=${DISPLAY}" --env "HOME=/home/fng" arch dbus-run-session startplasma-x11 podman stop -t 0 arch podman rm -f arch \ No newline at end of file