Skip to content

Commit

Permalink
--xc=podman: use --keep-id #466
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Aug 30, 2022
1 parent 5f7b078 commit 7af099c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Run 'x11docker --help' or scroll down to read usage information.
# More documentation at: https://github.com/mviereck/x11docker

Version="7.4.3-beta-7"
Version="7.4.3-beta-8"

# --enforce-i: Enforce running in interactive mode to allow commands tty and weston-launch in special setups. (deprecated)
grep -q -- "--enforce-i" <<< "$*" && case $- in
Expand Down Expand Up @@ -4337,8 +4337,17 @@ create_xcontainercommand() { # option --xc: create docker command for X in co
# user
case "$Xcrootless" in
yes)
Xc_user="\\
case "$Xcontainerbackend" in
podman)
Xc_user="$Xc_user \\
--user ${Hostuseruid}:${Hostusergid} \\
--keep-id"
;;
*)
Xc_user="\\
--user 0:0" # maps to same uid as unprivileged host user
;;
esac
;;
no)
Xc_user="$Xc_user \\
Expand Down

0 comments on commit 7af099c

Please sign in to comment.