VirtualBox

Changeset 11388 in vbox for trunk


Ignore:
Timestamp:
Aug 13, 2008 1:09:48 PM (16 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Fixed bug of gathering system information (from script) under linux platform for the registration purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxRegistrationDlg.cpp

    r10114 r11388  
    544544    // TODO: add sys info for os2 if any...
    545545#elif defined (Q_OS_LINUX) || defined (Q_OS_MACX) || defined (Q_OS_FREEBSD) || defined (Q_OS_SOLARIS)
     546    /* Get script path */
    546547    char szAppPrivPath [RTPATH_MAX];
    547     int rc;
    548 
    549     rc = RTPathAppPrivateNoArch (szAppPrivPath, sizeof (szAppPrivPath));
     548    int rc = RTPathAppPrivateNoArch (szAppPrivPath, sizeof (szAppPrivPath));
    550549    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());
    557555#endif
    558556    return platform;
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