VirtualBox

Ignore:
Timestamp:
Aug 13, 2007 11:05:15 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23604
Message:

Frontends: Don't pass DISPLAY=<NULL> to the VM process when there is no DISPLAY variable in the initiator's environment.

File:
1 edited

Legend:

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

    r4095 r4127  
    42354235#ifdef RT_OS_LINUX
    42364236        /* make sure the VM process will start on the same display as VBoxManage */
    4237         env = Utf8StrFmt ("DISPLAY=%s", getenv ("DISPLAY"));
     4237        {
     4238            const char *display = getenv ("DISPLAY");
     4239            if (display)
     4240                env = Utf8StrFmt ("DISPLAY=%s", display);
     4241        }
    42384242#endif
    42394243        ComPtr<IProgress> progress;
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