feat: support gui applications
This commit is contained in:
4
enter.sh
4
enter.sh
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
ghcr.io/job79/
|
||||
ghcr.io/job79
|
||||
|
||||
Reference in New Issue
Block a user