Skip to content

Commit

Permalink
Fix for some issues and removal of /run/host
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWright1324 committed May 26, 2024
1 parent 7715c8d commit 06ee724
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions host/.xsession
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 06ee724

Please sign in to comment.