This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch heuler/mate-minidesktop-bookworm in repository live-build-x2go. from e862170 Package libindicator3-7 does not exist in Bullseye new 363eb46 changed from bullseye heuler to bookworm stable new d52dca1 changed fuse to fuse3 new 0f7ddca de-array-ified, as we are forced to use dash instead of bash new 95fec1c this will now properly terminate all backgrounded child processes when X11 dies new 38f2f2a make sure kdrive sessions always end up in fullscreen mode unless it's a minidesktop new 3aae8b1 make settings file creation atomic new a5bcbe9 added backgrounded task to grab X2GoClient on Startup and move it to the right new 6d4a13b a script needs to be chmodded 755 to work ... new c7a1eba this script needs to run before the Xsession script/Xsession.d folder is executed new 132c596 fixed logic, added comments, added default size and /proc/cmdline parameter new b5438d7 sanitize input new a8badb6 typofix new 0987d99 only run kill command if there's actually a process id to kill new cab7b31 removed bashism as we are forced to use dash in bookworm The 14 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: config/archives/x2go.list.chroot | 2 +- .../etc/X11/Xsession.d/60x11-blanking-dpms-config | 11 +++-- .../X11/Xsession.d/60x11-kdrive-enforce-fullscreen | 18 ++++++++ .../X11/Xsession.d/60x11-magic-pixel-workaround | 4 ++ .../etc/X11/Xsession.d/60x11-set-xbackground | 2 +- .../etc/network/if-up.d/0100-show-sysconf | 2 +- .../020_x2gothinclient-confine-to-tray | 14 +++--- .../940_x2gothinclient-align-right | 54 ++++++++++++++++++++++ config/package-lists/fuseext.list.chroot | 2 +- config/package-lists/live.list.chroot | 2 +- config/package-lists/ntfs.list.chroot | 2 +- 11 files changed, 97 insertions(+), 16 deletions(-) create mode 100644 config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen create mode 100755 config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 363eb46a5e16b7672cc247a846e0e32ed688d785 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 01:04:47 2024 +0100 changed from bullseye heuler to bookworm stable --- config/archives/x2go.list.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/archives/x2go.list.chroot b/config/archives/x2go.list.chroot index d0592f1..8fcacf1 100644 --- a/config/archives/x2go.list.chroot +++ b/config/archives/x2go.list.chroot @@ -1 +1 @@ -deb http://packages.x2go.org/debian bullseye heuler +deb http://packages.x2go.org/debian bookworm main extras -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 d52dca1337df8bb03e7b76c72f22e8f4c921d0d1 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 01:17:19 2024 +0100 changed fuse to fuse3 --- config/package-lists/fuseext.list.chroot | 2 +- config/package-lists/live.list.chroot | 2 +- config/package-lists/ntfs.list.chroot | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/package-lists/fuseext.list.chroot b/config/package-lists/fuseext.list.chroot index 2011124..3ccacf9 100644 --- a/config/package-lists/fuseext.list.chroot +++ b/config/package-lists/fuseext.list.chroot @@ -1,3 +1,3 @@ -fuse +fuse3 fuseext2 libfuse2 diff --git a/config/package-lists/live.list.chroot b/config/package-lists/live.list.chroot index 250e9de..635f098 100644 --- a/config/package-lists/live.list.chroot +++ b/config/package-lists/live.list.chroot @@ -1,7 +1,7 @@ cifs-utils console-setup console-setup-linux -fuse +fuse3 gpg initramfs-tools kbd diff --git a/config/package-lists/ntfs.list.chroot b/config/package-lists/ntfs.list.chroot index da18f0e..b5516d5 100644 --- a/config/package-lists/ntfs.list.chroot +++ b/config/package-lists/ntfs.list.chroot @@ -1,4 +1,4 @@ -fuse +fuse3 libfuse2 libgcrypt20 #libgnutls-deb0-28 -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 95fec1ca649991125c65e60b1ed21cc4a53374f1 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Tue Jan 23 21:45:04 2024 +0100 this will now properly terminate all backgrounded child processes when X11 dies --- .../includes.chroot/etc/X11/Xsession.d/60x11-magic-pixel-workaround | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-magic-pixel-workaround b/config/includes.chroot/etc/X11/Xsession.d/60x11-magic-pixel-workaround index 00bb22d..c02fb2d 100644 --- a/config/includes.chroot/etc/X11/Xsession.d/60x11-magic-pixel-workaround +++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-magic-pixel-workaround @@ -6,6 +6,8 @@ if grep 'nomagicpixel=2' /proc/cmdline ; then done ; echo -en "\n$(date +'%F | %T | ')'$0' spawning window foreground monitor (magic-pixel-fix 2)." | tee -a /dev/tty8 xdotool search --class X2GoAgent behave %@ blur windowmap || xdotool search --class NXAgent behave %@ blur windowmap + # exit if X11 is no longer running, else sleep for a bit + ps -C Xorg || exit 0 done & elif grep 'nomagicpixel=1' /proc/cmdline ; then echo -en "\n$(date +'%F | %T | ')'$0' spawning openbox monitor (magic-pixel-fix 1)." | tee -a /dev/tty8 @@ -18,6 +20,8 @@ elif grep 'nomagicpixel=1' /proc/cmdline ; then killall openbox echo -en "\n$(date +'%F | %T | ')'$0' killed OpenBox." | tee -a /dev/tty8 done + # exit if X11 is no longer running, else sleep for a bit + ps -C Xorg || exit 0 sleep 1 # to save cpu cycles done & else -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 38f2f2a7c3cb30349bdf386ef60e313d3fa3b742 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Tue Jan 23 21:46:30 2024 +0100 make sure kdrive sessions always end up in fullscreen mode unless it's a minidesktop --- .../etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen b/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen new file mode 100644 index 0000000..f41813f --- /dev/null +++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen @@ -0,0 +1,18 @@ +# In Minidesktops, Users might actually want to run an X2Go-KDrive session that doesn't span the entire screen +if ! [ -f "/etc/x2go/x2gothinclient-minidesktop_start" ] ; then + ( + while true ; do + if ps -C x2gokdriveclient --no-header >/dev/null; then + # whenever x2gokdriveclient loads, make sure it is forced into fullscreen + xdotool search --onlyvisible --classname --maxdepth 1 x2gokdriveclient behave %@ focus windowsize $(xdotool getdisplaygeometry) & + TOOLPID=$! + xdotool search --onlyvisible --classname --maxdepth 1 x2gokdriveclient behave %@ blur windowsize $(xdotool getdisplaygeometry) + kill $TOOLPID + else + # exit if X11 is no longer running, else sleep for a bit + ps -C Xorg || exit 0 + sleep 1 + fi + done + ) & +fi -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 0f7ddcada6b3e75d3dcf87cee7540b3f13861a1f Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Tue Jan 23 13:54:32 2024 +0100 de-array-ified, as we are forced to use dash instead of bash --- .../etc/X11/Xsession.d/60x11-blanking-dpms-config | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-blanking-dpms-config b/config/includes.chroot/etc/X11/Xsession.d/60x11-blanking-dpms-config index 4aad736..e80df32 100644 --- a/config/includes.chroot/etc/X11/Xsession.d/60x11-blanking-dpms-config +++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-blanking-dpms-config @@ -2,8 +2,11 @@ BLANKINGTIME=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | awk -F '=' '$1 == "blank" { print $2 }' | tr -dc '0-9:') if [ -n "$BLANKINGTIME" ]; then - DPMSARR=($(echo $BLANKINGTIME | awk -F ':' '$1 ~/^[0-9]*$/ && $2 ~/^[0-9]*$/ && $3 ~/^[0-9]*$/ { print $1 " " $2 " " $3}')) - if [ ${DPMSARR[0]} -eq 0 ]; then + DPMSARR=$(echo $BLANKINGTIME | awk -F ':' '$1 ~/^[0-9]*$/ && $2 ~/^[0-9]*$/ && $3 ~/^[0-9]*$/ { print $1 " " $2 " " $3}') + DPMSARR1=$(echo $DPMSARR | cut -d ' ' -f 1) + DPMSARR2=$(echo $DPMSARR | cut -d ' ' -f 2) + DPMSARR3=$(echo $DPMSARR | cut -d ' ' -f 3) + if [ $DPMSARR1 -eq 0 ]; then # Disable screensaver and DPMS Power Saving if requested xset s off if grep -q '\W*nodpms\W*' /proc/cmdline; then @@ -11,10 +14,10 @@ if [ -n "$BLANKINGTIME" ]; then fi else xset s on - xset s ${DPMSARR[0]} + xset s $DPMSARR1 if ! grep -q '\W*nodpms\W*' /proc/cmdline; then # Yes, "+dpms dpms" is intentional. - xset +dpms dpms ${DPMSARR[0]} ${DPMSARR[1]} ${DPMSARR[2]} + xset +dpms dpms $DPMSARR1 $DPMSARR2 $DPMSARR3 fi fi fi -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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) <kontakt@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
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 a5bcbe9fec8e4e9447a991cae50c282db21736c5 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 15:38:40 2024 +0100 added backgrounded task to grab X2GoClient on Startup and move it to the right --- .../999_x2gothinclient-align-right | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right new file mode 100644 index 0000000..9b240c8 --- /dev/null +++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right @@ -0,0 +1,36 @@ +#!/bin/bash +# move X2GoClient window to right screen border and resize - but only +# when in minidesktop mode +if [ -z "$X2GO_HANDLE_DAEMON" ] ; then + # we need to background this so it doesn't block the startup + ( + # we have at least two matching window ids: + # actual client window and taskbar icon + # so let's wait until we have them both + X2GOCLIENTWINDOWIDS="" + while [ $(echo -e "$X2GOCLIENTWINDOWIDS" | wc -l) -lt 2 ] ; do + X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) + done + + # now wait until there is only one window id left that's visible and + # which matches our expected window name + while [ $(echo -e "$X2GOCLIENTWINDOWIDS" | wc -l) -gt 1 ] ; do + X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) + done + + # while there SHOULD be only one ID left by now ... + # let's handle this in a safe manner - as a list + for WINDOW in $X2GOCLIENTWINDOWIDS; do + # the id belonging to the taskbar icon cannot be activated + # xdotool does not return a non-zero error code when windowactivate + # fails, so we need to check for the presence of an error message + if xdotool windowactivate $WINDOW 2>/dev/null; then + # if we succeeded in activating the window, + # it's the actual client window + sleep 0.5s + xdotool windowsize $WINDOW 30% 100% # resize it + xdotool windowmove $WINDOW 70% 0 # move it to the right + fi + done + ) & +fi -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 6d4a13b78a2198cf75d55ead210e8830745d7917 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 17:00:26 2024 +0100 a script needs to be chmodded 755 to work ... --- .../etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right old mode 100644 new mode 100755 -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 132c5961aacb023cccffc3bd304207d327e9942a Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 19:09:16 2024 +0100 fixed logic, added comments, added default size and /proc/cmdline parameter --- .../940_x2gothinclient-align-right | 79 +++++++++++++--------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right index 9b240c8..7e4b460 100755 --- a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right +++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right @@ -1,36 +1,49 @@ #!/bin/bash -# move X2GoClient window to right screen border and resize - but only -# when in minidesktop mode +# move X2GoClient window to right screen border and resize - but only when in minidesktop mode + +WINDOWWIDTH=$(cat /proc/cmdline | tr ' ' '\n' | awk -F'=' '"windowwidth"==$1 {print $2}' | tr -dc '0-9') + +# default to 50(%) if unset +if [ -z "$WINDOWWIDTH" ]; then + WINDOWWIDTH=50" +fi + if [ -z "$X2GO_HANDLE_DAEMON" ] ; then - # we need to background this so it doesn't block the startup - ( - # we have at least two matching window ids: - # actual client window and taskbar icon - # so let's wait until we have them both - X2GOCLIENTWINDOWIDS="" - while [ $(echo -e "$X2GOCLIENTWINDOWIDS" | wc -l) -lt 2 ] ; do - X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) - done - - # now wait until there is only one window id left that's visible and - # which matches our expected window name - while [ $(echo -e "$X2GOCLIENTWINDOWIDS" | wc -l) -gt 1 ] ; do - X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) - done - - # while there SHOULD be only one ID left by now ... - # let's handle this in a safe manner - as a list - for WINDOW in $X2GOCLIENTWINDOWIDS; do - # the id belonging to the taskbar icon cannot be activated - # xdotool does not return a non-zero error code when windowactivate - # fails, so we need to check for the presence of an error message - if xdotool windowactivate $WINDOW 2>/dev/null; then - # if we succeeded in activating the window, - # it's the actual client window - sleep 0.5s - xdotool windowsize $WINDOW 30% 100% # resize it - xdotool windowmove $WINDOW 70% 0 # move it to the right - fi - done - ) & + # we need to background this so it doesn't block the startup + ( + # wait for window ids to show up + X2GOCLIENTWINDOWIDS="" + while [ -z "$X2GOCLIENTWINDOWIDS" ] ; do + # if this var is of nonzero length, we have at least one matching window id: + # the actual client window and possibly the taskbar icon + X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) + # make sure we terminate if X11 terminates + ps -C Xorg || exit 0 + done + + while [ $(echo -n "$X2GOCLIENTWINDOWIDS" | wc -l) -gt 2 ] ; do + # now wait until there is only one window id left that's visible and + # which matches our expected window name + X2GOCLIENTWINDOWIDS=$(xdotool search --onlyvisible --name X2GoClient) + # make sure we terminate if X11 terminates + ps -C Xorg || exit 0 + done + + # while there SHOULD be only one ID left by now ... + # let's handle this in a safe manner - as a list + for WINDOW in $X2GOCLIENTWINDOWIDS; do + # the id belonging to the taskbar icon cannot be activated + # xdotool does not return a non-zero error code when windowactivate + # fails, so we need to check for the presence of an error message + if xdotool windowactivate $WINDOW 2>/dev/null; then + # if we succeeded in activating the window, + # it's the actual client window + sleep 0.5s + xdotool windowsize $WINDOW ${WINDOWWIDTH}% 100% # resize it + xdotool windowmove $WINDOW $((100-WINDOWWIDTH))% 0 # move it to the right + fi + # make sure we terminate if X11 terminates + ps -C Xorg || exit 0 + done + ) & fi -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 c7a1eba90df6d3b36b3a1fea495957b157a33cd2 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 19:06:24 2024 +0100 this script needs to run before the Xsession script/Xsession.d folder is executed --- .../{999_x2gothinclient-align-right => 940_x2gothinclient-align-right} | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right similarity index 100% rename from config/includes.chroot/etc/x2go/x2gothinclient_init.d/999_x2gothinclient-align-right rename to config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 b5438d7dc8b0ee0a665e1c6352d5cc087a13ca00 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jan 26 19:20:16 2024 +0100 sanitize input --- .../etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right index 7e4b460..960f9a5 100755 --- a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right +++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right @@ -3,6 +3,11 @@ WINDOWWIDTH=$(cat /proc/cmdline | tr ' ' '\n' | awk -F'=' '"windowwidth"==$1 {print $2}' | tr -dc '0-9') +# sanitize input +if [ $WINDOWWIDTH -lt 0 ] || [ $WINDOWWIDTH -gt 101 ]; then + unset $WINDOWWIDTH +fi + # default to 50(%) if unset if [ -z "$WINDOWWIDTH" ]; then WINDOWWIDTH=50" -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 a8badb6efc334bf4061e47b821c49553e94b370f Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Sat Jan 27 05:09:54 2024 +0100 typofix --- .../etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right index 960f9a5..e92365f 100755 --- a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right +++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right @@ -10,7 +10,7 @@ fi # default to 50(%) if unset if [ -z "$WINDOWWIDTH" ]; then - WINDOWWIDTH=50" + WINDOWWIDTH="50" fi if [ -z "$X2GO_HANDLE_DAEMON" ] ; then -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 0987d995ce13e145b69e0e622b33d02c7a13e092 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Fri Jun 19 21:01:54 2020 +0000 only run kill command if there's actually a process id to kill --- config/includes.chroot/etc/network/if-up.d/0100-show-sysconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf b/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf index 14ac8a4..92b4664 100755 --- a/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf +++ b/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf @@ -48,5 +48,5 @@ fi [ -n "$TIMESTAMP" ] && echo "- Build Version: $TIMESTAMP ($HUMANTIMESTAMP)" | tee -a /etc/motd >> /etc/issue # make sure all unused VTs show the new /etc/issue - ps -C getty --no-header | awk '{ print $1 }' | xargs -n 1 kill -1 + ps -C getty --no-header | awk '{ print $1 }' | xargs -n 1 --no-run-if-empty kill -1 ) & -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
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 cab7b31b19fba96ac96cf5509e51eb48a9eb6140 Author: Stefan Baur (BAUR-ITCS) <kontakt@baur-itcs.de> Date: Sun Jan 28 14:48:53 2024 +0100 removed bashism as we are forced to use dash in bookworm --- config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground b/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground index cfdab6a..156b801 100644 --- a/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground +++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground @@ -7,7 +7,7 @@ if [ -n "$XROOT" ] ; then #input validation # allowed values for POSITION: center fill max scale tile; default: max - case "${XROOTMODE,,}" in # force lowercase + case "$(echo $XROOTMODE | tr '[:upper:]' '[:lower:]')" in # force lowercase "center") POSITION=center ;; "fill") POSITION=fill ;; "scale") POSITION=scale ;; -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git