From 8f891c116ca9e0de3081b07244d4f311d3777e59 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Jun 08 2020 15:38:28 +0000 Subject: Install the new VBoxDRMClient binary and make vboxclient.service run that instead of VBoxClient, this fixes VM display resizing when the guest is running a Wayland session --- diff --git a/VirtualBox-5.2.10-xclient.patch b/VirtualBox-5.2.10-xclient.patch index 529a1b5..308a8ee 100644 --- a/VirtualBox-5.2.10-xclient.patch +++ b/VirtualBox-5.2.10-xclient.patch @@ -1,6 +1,6 @@ --- ./src/VBox/Additions/x11/Installer/98vboxadd-xclient.orig 2020-06-06 06:20:12.079227656 +0100 +++ ./src/VBox/Additions/x11/Installer/98vboxadd-xclient 2020-06-06 06:26:55.886940895 +0100 -@@ -21,15 +21,9 @@ for i in $HOME/.vboxclient-*.pid; do +@@ -21,18 +21,11 @@ for i in $HOME/.vboxclient-*.pid; do test -w $i || rm -f $i done @@ -19,3 +19,6 @@ /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 diff --git a/vboxclient.service b/vboxclient.service index eda5913..3fabb54 100644 --- a/vboxclient.service +++ b/vboxclient.service @@ -4,5 +4,5 @@ ConditionVirtualization=|oracle [Service] Type=simple -ExecStart=/usr/bin/VBoxClient -f --vmsvga +ExecStart=/usr/bin/VBoxDRMClient Restart=on-failure diff --git a/virtualbox-guest-additions.spec b/virtualbox-guest-additions.spec index dc684ee..36694d0 100644 --- a/virtualbox-guest-additions.spec +++ b/virtualbox-guest-additions.spec @@ -2,7 +2,7 @@ Name: virtualbox-guest-additions Version: 6.1.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: VirtualBox Guest Additions License: GPLv2 or (GPLv2 and CDDL) URL: https://www.virtualbox.org/wiki/VirtualBox @@ -121,6 +121,7 @@ mkdir -p %{buildroot}%{_libdir}/security install -m 0755 -t %{buildroot}%{_sbindir} \ obj/bin/additions/VBoxService install -m 0755 -t %{buildroot}%{_bindir} \ + obj/bin/additions/VBoxDRMClient \ obj/bin/additions/VBoxClient \ obj/bin/additions/VBoxControl @@ -168,6 +169,7 @@ getent passwd vboxadd >/dev/null || \ %{_bindir}/VBoxClient %{_bindir}/VBoxControl %{_bindir}/VBoxClient-all +%{_bindir}/VBoxDRMClient %{_sbindir}/VBoxService %{_libdir}/security/pam_vbox.so %{_sysconfdir}/X11/xinit/xinitrc.d/98vboxadd-xclient.sh @@ -179,6 +181,11 @@ getent passwd vboxadd >/dev/null || \ %changelog +* Mon Jun 08 2020 Hans de Goede - 6.1.10-2 +- Install the new VBoxDRMClient binary and make vboxclient.service + run that instead of VBoxClient, this fixes VM display resizing when + the guest is running a Wayland session + * Sat Jun 06 2020 Sérgio Basto - 6.1.10-1 - Update Virtualbox Guest Additions to 6.1.10