VirtualBox

Ignore:
Timestamp:
Aug 10, 2007 9:37:32 AM (17 years ago)
Author:
vboxsync
Message:

Add a VBox-specific environment variable that allows configuring the IPC
socket name without having to mess with LOGNAME or USER. Needed for
simple way to make VMs portable (having one VBoxSVC per VM, in
combination with separated VirtualBox.xml files through VBOX_USER_HOME).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcConfig.cpp

    r3372 r4106  
    7070    bufLen -= (sizeof(kDefaultSocketPrefix) - 1);
    7171
    72     logName = PR_GetEnv("LOGNAME");
     72    logName = PR_GetEnv("VBOX_IPC_SOCKETID");
    7373    if (!logName || !logName[0]) {
    74         logName = PR_GetEnv("USER");
     74        logName = PR_GetEnv("LOGNAME");
    7575        if (!logName || !logName[0]) {
    76             LOG(("could not determine username from environment\n"));
    77             goto end;
     76            logName = PR_GetEnv("USER");
     77            if (!logName || !logName[0]) {
     78                LOG(("could not determine username from environment\n"));
     79                goto end;
     80            }
    7881        }
    7982    }
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