VirtualBox

Ignore:
Timestamp:
Sep 16, 2019 1:18:44 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133393
Message:

Main: bugref:9341: The "environment" parameter in the IMachine::launchVMProcess renamed to "environmentChanges" and changed the type from wstring to "safearray of wstrings"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r80498 r80824  
    23902390
    23912391    /* Configure environment: */
    2392     QString strEnv;
     2392    QVector<QString> astrEnv;
    23932393#ifdef Q_OS_WIN
    23942394    /* Allow started VM process to be foreground window: */
     
    23992399    const char *pDisplay = RTEnvGet("DISPLAY");
    24002400    if (pDisplay)
    2401         strEnv.append(QString("DISPLAY=%1\n").arg(pDisplay));
     2401        astrEnv.append(QString("DISPLAY=%1").arg(pDisplay));
    24022402    const char *pXauth = RTEnvGet("XAUTHORITY");
    24032403    if (pXauth)
    2404         strEnv.append(QString("XAUTHORITY=%1\n").arg(pXauth));
     2404        astrEnv.append(QString("XAUTHORITY=%1").arg(pXauth));
    24052405#endif
    24062406    QString strType;
     
    24142414
    24152415    /* Prepare "VM spawning" progress: */
    2416     CProgress comProgress = comMachine.LaunchVMProcess(comSession, strType, strEnv);
     2416    CProgress comProgress = comMachine.LaunchVMProcess(comSession, strType, astrEnv);
    24172417    if (!comMachine.isOk())
    24182418    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette