From 8d26a3036c7a6cf297e1792de208fec7a4b45414 Mon Sep 17 00:00:00 2001 From: "Jinming Wu, Patrick" Date: Mon, 11 May 2020 19:43:27 +0800 Subject: [PATCH] force to use systemwide config --- live-build/ubuntu/hooks/040-hyperv-desktop-images.binary | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary index f5c5ac63..8cd4d06e 100644 --- a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary +++ b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary @@ -74,6 +74,9 @@ exec /etc/xrdp/startwm.sh EOF chmod a+x "${scratch_d}/etc/xrdp/startubuntu.sh" +# set to use the system Window manager +sed -i${CHANGED_FILE_SUFFIX} -e 's/EnableUserWindowManager=true/EnableUserWindowManager=0/g' "${scratch_d}/etc/xrdp/sesman.ini" + # use the script to setup the ubuntu session sed -i${CHANGED_FILE_SUFFIX} -e 's/startwm/startubuntu/g' "${scratch_d}/etc/xrdp/sesman.ini"