- Timestamp:
- Jul 31, 2017 11:30:21 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r68188 r68192 1593 1593 /* 1594 1594 * Temporarily lock the machine to check whether it's running or not. 1595 * Note! Not sure if this is the cheapest way of doing this...1595 * We take this opportunity to disable the first run wizard. 1596 1596 */ 1597 1597 CHECK_ERROR2_RET(hrc, ptrMachine, LockMachine(a->session, LockType_Shared), RTEXITCODE_FAILURE); … … 1599 1599 ComPtr<IConsole> ptrConsole; 1600 1600 CHECK_ERROR2(hrc, a->session, COMGETTER(Console)(ptrConsole.asOutParam())); 1601 1602 if ( ptrConsole.isNull() 1603 && SUCCEEDED(hrc) 1604 && ( RTStrICmp(pszSessionType, "gui") == 0 1605 || RTStrICmp(pszSessionType, "none") == 0)) 1606 { 1607 ComPtr<IMachine> ptrSessonMachine; 1608 CHECK_ERROR2(hrc, a->session, COMGETTER(Machine)(ptrSessonMachine.asOutParam())); 1609 if (ptrSessonMachine.isNotNull()) 1610 CHECK_ERROR2(hrc, ptrSessonMachine, SetExtraData(Bstr("GUI/FirstRun").raw(), Bstr("0").raw())); 1611 } 1612 1601 1613 a->session->UnlockMachine(); 1602 1614 if (FAILED(hrc))
Note:
See TracChangeset
for help on using the changeset viewer.