forked from pool/virtualbox
2c52cfe01d
- VirtualBox 7.0.4 (released November 18 2022) VirtualBox 7.0.2 (released October 20 2022) VirtualBox 7.0.0 (released October 10 2022) OBS-URL: https://build.opensuse.org/request/show/1037192 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=664
24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
Index: VirtualBox-7.0.4/src/VBox/Additions/x11/Installer/98vboxadd-xclient
|
|
===================================================================
|
|
--- VirtualBox-7.0.4.orig/src/VBox/Additions/x11/Installer/98vboxadd-xclient
|
|
+++ VirtualBox-7.0.4/src/VBox/Additions/x11/Installer/98vboxadd-xclient
|
|
@@ -31,15 +31,9 @@ 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
|