mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
VirtualBox Guest Additions: add autostart file and Deskbar link
This commit is contained in:
@@ -26,8 +26,6 @@ PROVIDES="
|
||||
cmd:VBoxTray$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
# TODO: POST_INSTALL_SCRIPTS=""
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
openssl$secondaryArchSuffix >= 1.0.0
|
||||
@@ -90,9 +88,24 @@ INSTALL()
|
||||
# cp vboxvideo $addOnsDir/kernel/drivers/bin
|
||||
# ln -fs ../../bin/vboxvideo $addOnsDir/kernel/drivers/dev/graphics
|
||||
# cp vboxvideo.accelerant $addOnsDir/accelerants
|
||||
#
|
||||
|
||||
# Add a symlink to the Desktop applets directory in Deskbar
|
||||
desktopAppletsDir="$dataDir/deskbar/menu/Desktop applets"
|
||||
mkdir -p "$desktopAppletsDir"
|
||||
ln -s $binDir/VBoxTray "$desktopAppletsDir/VBoxTray"
|
||||
|
||||
mkdir -p $binDir
|
||||
cp VBoxControl $binDir
|
||||
cp VBoxService $binDir
|
||||
cp VBoxTray $binDir
|
||||
cp VBoxControl VBoxTray VBoxTray $binDir
|
||||
|
||||
echo "target desktop {
|
||||
service x-vnd.Oracle-VBoxGuest {
|
||||
launch /bin/VBoxTray
|
||||
no_safemode
|
||||
legacy
|
||||
on {
|
||||
initial_volumes_mounted
|
||||
}
|
||||
}
|
||||
}
|
||||
" > $dataDir/user_launch/VBoxTray
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user