Changeset 20313 in vbox
- Timestamp:
- Jun 5, 2009 11:00:32 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48212
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r20294 r20313 462 462 } 463 463 #endif 464 #ifdef VBOX_WITH_HEADLESS 464 465 else if (!RTStrICmp(ValueUnion.psz, "capture")) 465 466 { 466 467 sessionType = "capture"; 467 468 } 469 else if (!RTStrICmp(ValueUnion.psz, "headless")) 470 { 471 sessionType = "headless"; 472 } 473 #endif 468 474 else 469 475 return errorArgument("Invalid session type '%s'", ValueUnion.psz); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r20054 r20313 259 259 { 260 260 RTPrintf("VBoxManage startvm <uuid>|<name>\n"); 261 RTPrintf(" [--type gui"); 261 262 if (fVRDP) 262 RTPrintf(" [--type gui|vrdp]\n"); 263 RTPrintf( "|vrdp"); 264 RTPrintf( "|headless]\n"); 263 265 RTPrintf("\n"); 264 266 } -
trunk/src/VBox/Main/MachineImpl.cpp
r20206 r20313 3871 3871 else 3872 3872 3873 #ifdef VBOX_WITH_HEADLESS 3874 if ( type == "headless" 3875 || type == "capture" 3873 3876 #ifdef VBOX_WITH_VRDP 3874 if (type == "vrdp") 3877 || type == "vrdp" 3878 #endif 3879 ) 3875 3880 { 3876 3881 const char VBoxVRDP_exe[] = "VBoxHeadless" HOSTSUFF_EXE; … … 3879 3884 3880 3885 Utf8Str idStr = mData->mUuid.toString(); 3886 /* Leave space for 2 args, as "headless" needs --vrdp off on non-OSE. */ 3881 3887 # ifdef RT_OS_WINDOWS 3882 const char * args[] = {path, "--startvm", idStr, 0 };3888 const char * args[] = {path, "--startvm", idStr, 0, 0, 0 }; 3883 3889 # else 3884 3890 Utf8Str name = mUserData->mName; 3885 const char * args[] = {path, "--comment", name, "--startvm", idStr, 0 };3891 const char * args[] = {path, "--comment", name, "--startvm", idStr, 0, 0, 0 }; 3886 3892 # endif 3887 vrc = RTProcCreate (path, args, env, 0, &pid); 3888 } 3889 #else /* !VBOX_WITH_VRDP */ 3890 if (0) 3891 ; 3892 #endif /* !VBOX_WITH_VRDP */ 3893 3894 else 3895 3896 #ifdef VBOX_WITH_HEADLESS 3897 if (type == "capture") 3898 { 3899 const char VBoxVRDP_exe[] = "VBoxHeadless" HOSTSUFF_EXE; 3900 Assert (sz >= sizeof (VBoxVRDP_exe)); 3901 strcpy (cmd, VBoxVRDP_exe); 3902 3903 Utf8Str idStr = mData->mUuid.toString(); 3904 # ifdef RT_OS_WINDOWS 3905 const char * args[] = {path, "--startvm", idStr, "--capture", 0 }; 3906 # else 3907 Utf8Str name = mUserData->mName; 3908 const char * args[] = {path, "--comment", name, "--startvm", idStr, "--capture", 0 }; 3909 # endif 3893 #ifdef VBOX_WITH_VRDP 3894 if (type == "headless") 3895 { 3896 unsigned pos = RT_ELEMENTS(args) - 3; 3897 args[pos++] = "--vrdp"; 3898 args[pos] = "off"; 3899 } 3900 #endif 3901 if (type == "capture") 3902 { 3903 unsigned pos = RT_ELEMENTS(args) - 3; 3904 args[pos] = "--capture"; 3905 } 3910 3906 vrc = RTProcCreate (path, args, env, 0, &pid); 3911 3907 }
Note:
See TracChangeset
for help on using the changeset viewer.