This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch heuler/mate-minidesktop-bullseye in repository live-build-x2go. at 39fa6e1 only run kill command if there's actually a process id to kill This branch includes the following new commits: new cebafd6 added backgrounded task to grab X2GoClient on Startup and move it to the right new 39fa6e1 only run kill command if there's actually a process id to kill The 2 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. -- 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-bullseye in repository live-build-x2go. commit cebafd618899082dc13a79db24f3c338b65f1f99 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-bullseye in repository live-build-x2go. commit 39fa6e1b37c39465c5859badc7d280c3deb7f6be 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