diff options
author | lilac | 2022-11-12 04:44:39 +0800 |
---|---|---|
committer | lilac | 2022-11-12 04:44:39 +0800 |
commit | 8fe336f99c610c54f055285bd60a33907c91dd06 (patch) | |
tree | 4f13736a318a21acd90b6e91d171b4b4936a6d80 /018-upate-xclient-script.patch | |
parent | cff16b439bf2a1cc438838a73e203af0339b2484 (diff) | |
download | aur-8fe336f99c610c54f055285bd60a33907c91dd06.tar.gz |
[lilac] updated to 97514-1
Diffstat (limited to '018-upate-xclient-script.patch')
-rw-r--r-- | 018-upate-xclient-script.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/018-upate-xclient-script.patch b/018-upate-xclient-script.patch new file mode 100644 index 000000000000..eeb5e0e878a7 --- /dev/null +++ b/018-upate-xclient-script.patch @@ -0,0 +1,35 @@ +From 12e0a15f8893187ee92fa5af8095b8bb33adefe5 Mon Sep 17 00:00:00 2001 +From: Christian Hesse <mail@eworm.de> +Date: Mon, 17 Oct 2022 16:40:29 +0200 +Subject: [PATCH] upate xclient script + +--- + src/VBox/Additions/x11/Installer/98vboxadd-xclient | 13 +++---------- + 1 file changed, 3 insertions(+), 10 deletions(-) + +diff --git a/src/VBox/Additions/x11/Installer/98vboxadd-xclient b/src/VBox/Additions/x11/Installer/98vboxadd-xclient +index 7c9b5989..271261a4 100755 +--- a/src/VBox/Additions/x11/Installer/98vboxadd-xclient ++++ b/src/VBox/Additions/x11/Installer/98vboxadd-xclient +@@ -31,18 +31,11 @@ for i in $HOME/.vboxclient-*.pid; do + test -w $i || rm -f $i + done + +-if ! test -c /dev/vboxguest 2>/dev/null; then +- # Do not start if the kernel module is not present. +- # Execute notify-send in the back-ground to avoid racing with sddm, +- # as notify-send may wait for sddm to start while it waits for us to exit. +- notify-send "VBoxClient: the VirtualBox kernel service is not running. Exiting." & +-elif test -z "${SSH_CONNECTION}"; then +- # This script can also be triggered by a connection over SSH, which is not +- # what we had in mind, so we do not start VBoxClient in that case. We do +- # not use "exit" here as this script is "source"d, not executed. ++# Do not start if the kernel module is not present; or if this script is ++# triggered by a connection over SSH. ++if [ -c /dev/vboxguest -a -z "${SSH_CONNECTION}" ]; then + /usr/bin/VBoxClient --clipboard + /usr/bin/VBoxClient --checkhostversion + /usr/bin/VBoxClient --seamless + /usr/bin/VBoxClient --draganddrop +- /usr/bin/VBoxClient --vmsvga-session # In case VMSVGA emulation is enabled + fi |