- Timestamp:
- Aug 13, 2008 1:09:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxRegistrationDlg.cpp
r10114 r11388 544 544 // TODO: add sys info for os2 if any... 545 545 #elif defined (Q_OS_LINUX) || defined (Q_OS_MACX) || defined (Q_OS_FREEBSD) || defined (Q_OS_SOLARIS) 546 /* Get script path */ 546 547 char szAppPrivPath [RTPATH_MAX]; 547 int rc; 548 549 rc = RTPathAppPrivateNoArch (szAppPrivPath, sizeof (szAppPrivPath)); 548 int rc = RTPathAppPrivateNoArch (szAppPrivPath, sizeof (szAppPrivPath)); 550 549 Assert (RT_SUCCESS (rc)); 551 QProcess infoScript (this); 552 infoScript.setWorkingDirectory (QString (szAppPrivPath)); 553 infoScript.start (QString ("VBoxSysInfo.sh")); 554 bool result = infoScript.waitForFinished(); 555 if (result && infoScript.exitStatus() == QProcess::NormalExit) 556 platform += QString (" [%1]").arg (QString (infoScript.readAllStandardOutput())); 550 /* Run script */ 551 QByteArray result = 552 Process::singleShot (QString (szAppPrivPath) + "/VBoxSysInfo.sh"); 553 if (!result.isNull()) 554 platform += QString (" [%1]").arg (QString (result).trimmed()); 557 555 #endif 558 556 return platform;
Note:
See TracChangeset
for help on using the changeset viewer.