Fix shared clipboard support

Installer tries to create /usr/bin/VBoxClient-all as a symlink to
${INSTALL_DIR}/other/98vboxadd-xclient, and has vboxclient.desktop use
that symlink for its Exec. Creation of the symlink fails, and we don't
want it in /usr/bin anyway, so just edit the .desktop file to point
directly to the script. This script launches the various VBoxClient
daemons to handle shared clipboard, drag and drop, display management,
and seamless window services.

We have to modify both copies because a startup script copies the
version from ${INSTALL_DIR} into the appropriate desktop manager paths
each boot.
This commit is contained in:
Brett T. Warden
2019-03-19 13:57:29 -07:00
parent 7ac2c721d1
commit 0a0afb159e
+9
View File
@@ -156,6 +156,15 @@ setup_install ()
# Do not add new group
sed -i -- 's/groupadd/true/g' ${f}
done
# Ensure that support daemons for clipboard sharing, etc. will load
xclient=$(find ${INSTALL_DIR} -type f -name '[0-9][0-9]vboxadd-xclient' \
| head -1)
if [[ -f ${xclient} ]]; then
find /etc/xdg/autostart ${INSTALL_DIR} -type f -name vboxclient.desktop -exec \
sed -i \ "s|^Exec=.*|Exec=${xclient}|" {} \;
fi
mkdir -p /etc/udev/rules.d
mkdir -p /etc/ld.so.conf.d
mkdir -p /etc/xdg/autostart