Update OneClickDesktop_zh-CN.sh

This commit is contained in:
Har-Kuun 2020-08-03 20:08:43 -05:00 committed by GitHub
parent 1bdea77fc9
commit ebd241f0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,11 +273,6 @@ ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
END
cat > $HomeDir/Desktop/EnableCopyPaste.sh <<END
#!/bin/bash
/usr/bin/vncconfig -display :1 &
END
chmod +x $HomeDir/Desktop/EnableCopyPaste.sh
vncpassbinpath=/usr/bin/vncpasswd
/usr/bin/expect <<END
spawn "$vncpassbinpath"
@ -296,6 +291,11 @@ END
systemctl start vncserver@1.service
systemctl enable vncserver@1.service
/usr/bin/vncconfig -display :1 &
cat > $HomeDir/Desktop/EnableCopyPaste.sh <<END
#!/bin/bash
/usr/bin/vncconfig -display :1 &
END
chmod +x $HomeDir/Desktop/EnableCopyPaste.sh
echo
ss -lnpt | grep vnc > /dev/null
if [ $? = 0 ] ; then