From 7af099c931a3dd6b409aaa6eee98f00fa41d2633 Mon Sep 17 00:00:00 2001 From: mviereck Date: Tue, 30 Aug 2022 14:46:00 +0200 Subject: [PATCH] --xc=podman: use --keep-id #466 --- x11docker | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/x11docker b/x11docker index f063eda..4c587da 100755 --- a/x11docker +++ b/x11docker @@ -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 @@ -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 \\