VirtualBox

Ignore:
Timestamp:
Aug 7, 2007 2:19:46 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23501
Message:

Main/Frontends: Pass the value of the DISPLAY variable of the starting application to the VM process (#2101).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r3917 r4064  
    42364236        }
    42374237
     4238        Bstr env;
     4239#ifdef RT_OS_LINUX
     4240        /* make sure the VM process will start on the same display as VBoxManage */
     4241        env = Utf8StrFmt ("DISPLAY=%s", getenv ("DISPLAY"));
     4242#endif
    42384243        ComPtr<IProgress> progress;
    4239         CHECK_ERROR_RET(virtualBox, OpenRemoteSession(session, uuid, sessionType, progress.asOutParam()), rc);
     4244        CHECK_ERROR_RET(virtualBox, OpenRemoteSession(session, uuid, sessionType,
     4245                                                      env, progress.asOutParam()), rc);
    42404246        RTPrintf("Waiting for the remote session to open...\n");
    42414247        CHECK_ERROR_RET(progress, WaitForCompletion (-1), 1);
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