From 9f7e02fc743ef74a735899d692ef220009b8a3c8 Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Tue, 21 Nov 2023 21:42:07 +0800 Subject: [PATCH] flux/entry # de-start.service --- flux/src/entry.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flux/src/entry.sh b/flux/src/entry.sh index 07a9e6c6..64f4e77c 100644 --- a/flux/src/entry.sh +++ b/flux/src/entry.sh @@ -139,9 +139,11 @@ function setXserver(){ port0=$(expr 0 + $VNC_OFFSET) #vnc: 5900+10 # sed -i "s/_DISPLAY_/$port0/" /etc/supervisor/conf.d/sv.conf oneVnc "$port0" "headless" #sv - sed -i "s/Environment=DISPLAY=.*/Environment=DISPLAY=:$VNC_OFFSET/g" /etc/systemd/system/de-start.service - sed -i "s/Environment=LANG=.*/Environment=LANG=$L.UTF-8/g" /etc/systemd/system/de-start.service - sed -i "s/Environment=LANGUAGE=.*/Environment=LANGUAGE=$L:en/g" /etc/systemd/system/de-start.service + + # de-start.service + # sed -i "s/Environment=DISPLAY=.*/Environment=DISPLAY=:$VNC_OFFSET/g" /etc/systemd/system/de-start.service + # sed -i "s/Environment=LANG=.*/Environment=LANG=$L.UTF-8/g" /etc/systemd/system/de-start.service + # sed -i "s/Environment=LANGUAGE=.*/Environment=LANGUAGE=$L:en/g" /etc/systemd/system/de-start.service # clearPass: if not default if [ "headless" != "$VNC_PASS" ]; then