VirtualBox

Ignore:
Timestamp:
Oct 31, 2007 10:07:51 PM (17 years ago)
Author:
vboxsync
Message:

Registration dialog: use the Runtime function rather than the Qt function (important for our .debs/.rpms)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxRegistrationDlg.ui.h

    r5579 r5592  
    2828** destructor.
    2929*****************************************************************************/
     30
     31#include <iprt/param.h>
     32#include <iprt/path.h>
    3033
    3134/**
     
    514517    // TODO: add sys info for os2 if any...
    515518#elif defined (Q_OS_LINUX) || defined (Q_OS_MACX) || defined (Q_OS_FREEBSD) || defined (Q_OS_SOLARIS)
     519    char szAppPrivPath [RTPATH_MAX];
     520    int rc;
     521
     522    rc = RTPathAppPrivateNoArch (szAppPrivPath, sizeof (szAppPrivPath));
     523    Assert (RT_SUCCESS (rc));
    516524    QProcess infoScript (QString ("./VBoxSysInfo.sh"), this, "infoScript");
    517     infoScript.setWorkingDirectory (qApp->applicationDirPath());
     525    infoScript.setWorkingDirectory (QString (szAppPrivPath));
    518526    if (infoScript.start())
    519527    {
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