VirtualBox

Changeset 43030 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 28, 2012 11:41:55 AM (12 years ago)
Author:
vboxsync
Message:

Main/GuestSessionImplTasks: Don't wait for Guest Additions to be ready.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r43002 r43030  
    900900
    901901    ComObjPtr<Guest> pGuest(mSession->getParent());
     902#if 0
    902903    /*
    903904     * Wait for the guest being ready within 30 seconds.
     
    922923        hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
    923924                                 Utf8StrFmt(GuestSession::tr("Guest Additions were not ready within time, giving up")));
    924 
    925     eOSType osType;
     925#else
     926    /*
     927     * For use with the GUI we don't want to wait, just return so that the manual .ISO mounting
     928     * can continue.
     929     */
     930    AdditionsRunLevelType_T addsRunLevel;
     931    if (      FAILED(hr = pGuest->COMGETTER(AdditionsRunLevel)(&addsRunLevel))
     932        || (   addsRunLevel != AdditionsRunLevelType_Userland
     933            && addsRunLevel != AdditionsRunLevelType_Desktop))
     934    {
     935        hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
     936                                 Utf8StrFmt(GuestSession::tr("Guest Additions not installed or ready, aborting automatic update")));
     937        rc = VERR_NOT_SUPPORTED;
     938    }
     939#endif
     940
    926941    if (RT_SUCCESS(rc))
    927942    {
     
    940955            rc = VERR_NOT_SUPPORTED;
    941956        }
    942 
     957    }
     958
     959    eOSType osType;
     960    if (RT_SUCCESS(rc))
     961    {
    943962        /*
    944963         * Determine guest OS type and the required installer image.
     
    10841103                             *             VBox certificates. */
    10851104                            GuestProcessStartupInfo siCertUtilRem;
    1086                             siCertUtilRem.mName = "VirtualBox Certificate Utility";
     1105                            siCertUtilRem.mName = "VirtualBox Certificate Utility, removing old VirtualBox certificates";
    10871106                            siCertUtilRem.mArguments.push_back(Utf8Str("remove-trusted-publisher"));
    10881107                            siCertUtilRem.mArguments.push_back(Utf8Str("--root")); /* Add root certificate as well. */
     
    10961115                             *              recent certificates just copied over. */
    10971116                            GuestProcessStartupInfo siCertUtilAdd;
    1098                             siCertUtilAdd.mName = "VirtualBox Certificate Utility";
     1117                            siCertUtilAdd.mName = "VirtualBox Certificate Utility, installing VirtualBox certificates";
    10991118                            siCertUtilAdd.mArguments.push_back(Utf8Str("add-trusted-publisher"));
    11001119                            siCertUtilAdd.mArguments.push_back(Utf8Str("--root")); /* Add root certificate as well. */
Note: See TracChangeset for help on using the changeset viewer.

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