VirtualBox

Ignore:
Timestamp:
Jul 22, 2020 11:23:05 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: VirtualBox Manager: Another fix for cloud console external terminal execution, this time for Linux host; Do not pass arguments as a single line, split them to list by space delimiter for now, more wise splitting will come later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r85399 r85412  
    12411241    AssertMsgReturnVoid(pAction, ("This slot should be called by action only!\n"));
    12421242    const QString strPath = pAction->property("path").toString();
    1243     QStringList arguments = QStringList() << pAction->property("arguments").toString();
     1243    QStringList arguments = pAction->property("arguments").toString().split(' ');
    12441244
    12451245    /* Get current-item: */
     
    12581258
    12591259    /* Execute console application finally: */
    1260     QProcess::startDetached(QString("%1 %2").arg(strPath, arguments.join(' ')));
     1260    QProcess::startDetached(strPath, arguments);
    12611261}
    12621262
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