VirtualBox

Changeset 64429 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2016 12:35:34 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: handle NS_ERROR_SOCKET_FAIL

File:
1 edited

Legend:

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

    r63795 r64429  
    441441void UIMessageCenter::cannotAcquireVirtualBox(const CVirtualBoxClient &client) const
    442442{
    443     error(0, MessageType_Critical,
    444           tr("<p>Failed to acquire the VirtualBox COM object.</p>"
    445              "<p>The application will now terminate.</p>"),
    446           formatErrorInfo(client));
     443    QString err = tr("<p>Failed to acquire the VirtualBox COM object.</p>"
     444                     "<p>The application will now terminate.</p>");
     445#if defined(VBOX_WS_X11) || defined(VBOX_WS_MAC)
     446    if (client.lastRC() == NS_ERROR_SOCKET_FAIL)
     447        err += tr("<p>The reason for this error are most likely wrong permissions of the IPC "
     448                  "daemon socket due to an installation problem. Please check the permissions of "
     449                  "<font color=blue>'/tmp'</font> and <font color=blue>'/tmp/.vbox-*-ipc/'</font></p>");
     450#endif
     451    error(0, MessageType_Critical, err, formatErrorInfo(client));
    447452}
    448453
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