This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch heuler/mate-minidesktop-bookworm
in repository live-build-x2go.

commit 3aae8b11c0e3e72ab58eeccef10675662f627eb8
Author: Stefan Baur (BAUR-ITCS) <kont...@baur-itcs.de>
Date:   Fri Jan 26 12:22:43 2024 +0100

    make settings file creation atomic
---
 .../020_x2gothinclient-confine-to-tray                     | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/020_x2gothinclient-confine-to-tray
 
b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/020_x2gothinclient-confine-to-tray
index a0476bd..870e5e9 100755
--- 
a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/020_x2gothinclient-confine-to-tray
+++ 
b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/020_x2gothinclient-confine-to-tray
@@ -22,12 +22,14 @@
 
 if [ -z "$X2GO_HANDLE_DAEMON" ] ; then
        mkdir -p ~x2gothinclient/.x2goclient
-       echo '[trayicon]' >>~x2gothinclient/.x2goclient/settings
-       echo 'enabled=true' >>~x2gothinclient/.x2goclient/settings
-       echo 'mintotray=true' >>~x2gothinclient/.x2goclient/settings
-       echo 'noclose=true' >>~x2gothinclient/.x2goclient/settings
-       echo 'mincon=true' >>~x2gothinclient/.x2goclient/settings
-       echo 'maxdiscon=true' >>~x2gothinclient/.x2goclient/settings
+       echo '[trayicon]' >>~x2gothinclient/.x2goclient/settings.tmp
+       echo 'enabled=true' >>~x2gothinclient/.x2goclient/settings.tmp
+       echo 'mintotray=true' >>~x2gothinclient/.x2goclient/settings.tmp
+       echo 'noclose=true' >>~x2gothinclient/.x2goclient/settings.tmp
+       echo 'mincon=true' >>~x2gothinclient/.x2goclient/settings.tmp
+       echo 'maxdiscon=true' >>~x2gothinclient/.x2goclient/settings.tmp
        chown x2gothinclient:x2gothinclient ~x2gothinclient -Rf
        chmod go-rwx ~x2gothinclient -Rf
+       # make this an atomic change
+       mv ~x2gothinclient/.x2goclient/settings.tmp 
~x2gothinclient/.x2goclient/settings
 fi

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/live-build-x2go.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to