feat: support gui applications

This commit is contained in:
Job
2025-08-27 20:49:37 +02:00
parent 2ee75a2f91
commit e193a14dee
2 changed files with 3 additions and 3 deletions

View File

@@ -28,8 +28,9 @@ run_args() {
arg "--net=host"
# Mount the wayland socket. Required to get the system
# clipbard (wl-copy) working.
# clipbard (wl-copy) and gui applications working.
[ -e "/run/user/$UID/wayland-0" ] && arg "-v /run/user/$UID/wayland-0:/run/user/1000/wayland-0"
arg "--device /dev/dri" # mount gpu devices for gpu acceleration.
# Mount the ssh socket, directory and the git config
# directory. This gets the host ssh and git configuration
@@ -74,7 +75,6 @@ if [ "$pull" = true ] || [ "$(podman container inspect "$name" -f {{.State.Runni
log "failed to download container image" 'x' 31
fi
podman container rm -f -t 1 "$name" 1>/dev/null
run_args
podman run -td $(run_args) "$registry/$name"
else
log "no updates available" '✓' 32