1 From 12e0a15f8893187ee92fa5af8095b8bb33adefe5 Mon Sep 17 00:00:00 2001
2 From: Christian Hesse <mail@eworm.de>
3 Date: Mon, 17 Oct 2022 16:40:29 +0200
4 Subject: [PATCH] upate xclient script
7 src/VBox/Additions/x11/Installer/98vboxadd-xclient | 13 +++----------
8 1 file changed, 3 insertions(+), 10 deletions(-)
10 diff --git a/src/VBox/Additions/x11/Installer/98vboxadd-xclient b/src/VBox/Additions/x11/Installer/98vboxadd-xclient
11 index 7c9b5989..271261a4 100755
12 --- a/src/VBox/Additions/x11/Installer/98vboxadd-xclient
13 +++ b/src/VBox/Additions/x11/Installer/98vboxadd-xclient
14 @@ -31,18 +31,11 @@ for i in $HOME/.vboxclient-*.pid; do
15 test -w $i || rm -f $i
18 -if ! test -c /dev/vboxguest 2>/dev/null; then
19 - # Do not start if the kernel module is not present.
20 - # Execute notify-send in the back-ground to avoid racing with sddm,
21 - # as notify-send may wait for sddm to start while it waits for us to exit.
22 - notify-send "VBoxClient: the VirtualBox kernel service is not running. Exiting." &
23 -elif test -z "${SSH_CONNECTION}"; then
24 - # This script can also be triggered by a connection over SSH, which is not
25 - # what we had in mind, so we do not start VBoxClient in that case. We do
26 - # not use "exit" here as this script is "source"d, not executed.
27 +# Do not start if the kernel module is not present; or if this script is
28 +# triggered by a connection over SSH.
29 +if [ -c /dev/vboxguest -a -z "${SSH_CONNECTION}" ]; then
30 /usr/bin/VBoxClient --clipboard
31 /usr/bin/VBoxClient --checkhostversion
32 /usr/bin/VBoxClient --seamless
33 /usr/bin/VBoxClient --draganddrop
34 - /usr/bin/VBoxClient --vmsvga-session # In case VMSVGA emulation is enabled