From c893bec2fe0996ebada03299702d788470222224 Mon Sep 17 00:00:00 2001 From: mviereck Date: Sun, 20 Feb 2022 12:31:31 +0100 Subject: [PATCH] --xc: fix --runfromhost --- x11docker | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x11docker b/x11docker index 7161b17e..eebe5a52 100755 --- a/x11docker +++ b/x11docker @@ -4394,12 +4394,6 @@ create_xinitrc() { # create xinitrc: set up X environment, create c # --xfishtank [ "$Xfishtank" = "yes" ] && echo "xfishtank & storepid \$! xfishtank" - [ "$Runfromhost" ] && { - echo "# custom host command added with option --runfromhost" - echo "$Runfromhost" - echo "" - } - echo "echo 'xinitrc: xinitrc is ready'" echo "storeinfo xinitrc=ready" echo "" @@ -10121,6 +10115,12 @@ $(nl -ba <$Cmdrc)" waitforlogentry 'start_container()' $Xinitlogfile 'xinitrc is ready' "$Xiniterrorcodes" rocknroll || timetosaygoodbye main + [ "$Runfromhost" ] && { # --runfromhost + while read Line; do + unpriv "env $Newxenv $Runfromhost" + done <<< "$Runfromhost" + } + case "$Backend" in chroot) Chrootmountlist="$(grep . <<< "$Chrootmountlist")"