VirtualBox

Ignore:
Timestamp:
Nov 23, 2010 11:08:52 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68023
Message:

FE/Qt4; Installer-OSX; Resources: add handling of file type association

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r31940 r34275  
    6767VBOXWEBSRV_TRG="${HOME}/Library/LaunchAgents"
    6868if [[ -e "${VBOXWEBSRV}" && -e "${VBOXWEBSRV_TRG}" ]]; then
    69    echo "Installing vboxwebsrv launchd file to ${VBOXWEBSRV_TRG}"
    70    ${CP} "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/"
    71    /usr/sbin/chown `/usr/bin/stat -f"%u" "${HOME}"` "${VBOXWEBSRV_TRG}/org.virtualbox.vboxwebsrv.plist"
     69    echo "Installing vboxwebsrv launchd file to ${VBOXWEBSRV_TRG}"
     70    ${CP} "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/"
     71    /usr/sbin/chown "${USER}" "${VBOXWEBSRV_TRG}/org.virtualbox.vboxwebsrv.plist"
    7272fi
    7373
     
    7777DATAPATH="`/usr/bin/dirname "${0}"`/../../../../../.."
    7878if [ -d "${DATAPATH}/.custom" ]; then
    79    echo  1>&2 "Copy ${DATAPATH}/.custom to ${VBOX_INSTALL_PATH}...";
    80    ${CPDIR} "${DATAPATH}/.custom/"   "${VBOX_INSTALL_PATH}/custom"
     79    echo  1>&2 "Copy ${DATAPATH}/.custom to ${VBOX_INSTALL_PATH}...";
     80    ${CPDIR} "${DATAPATH}/.custom/"   "${VBOX_INSTALL_PATH}/custom"
     81fi
     82
     83#
     84# Register our file extensions
     85#
     86LSREGISTER=/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
     87if [ -e ${LSREGISTER} ]; then
     88    echo "Register file extensions for $USER"
     89    /usr/bin/sudo -u "${USER}" ${LSREGISTER} -f /Applications/VirtualBox.app
     90    /usr/bin/sudo -u "${USER}" ${LSREGISTER} -f /Applications/VirtualBox.app/Contents/Resources/vmstarter.app
    8191fi
    8292
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette