summarylogtreecommitdiffstats
path: root/018-xclient.patch
diff options
context:
space:
mode:
authorlilac2020-07-18 05:40:00 +0800
committerlilac2020-07-18 05:40:00 +0800
commit6a0cb668fb8d7850d6e55cbfe9f6a4e1fdb5c8bf (patch)
tree84bd60b1b0acfd648ce34a325d656dc08e3a73c1 /018-xclient.patch
parent76b90bc3c51bef893f17932590cf912b06241124 (diff)
downloadaur-6a0cb668fb8d7850d6e55cbfe9f6a4e1fdb5c8bf.tar.gz
[lilac] updated to 85357-1
Diffstat (limited to '018-xclient.patch')
-rw-r--r--018-xclient.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/018-xclient.patch b/018-xclient.patch
new file mode 100644
index 000000000000..411c85d1b9ef
--- /dev/null
+++ b/018-xclient.patch
@@ -0,0 +1,24 @@
+--- a/src/VBox/Additions/x11/Installer/98vboxadd-xclient
++++ b/src/VBox/Additions/x11/Installer/98vboxadd-xclient
+@@ -21,18 +21,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 # In case VMSVGA emulation is enabled
+ fi