Changeset 23285 in vbox
- Timestamp:
- Sep 24, 2009 2:56:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 52775
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r23249 r23285 523 523 #if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) 524 524 /* make sure the VM process will start on the same display as VBoxManage */ 525 { 526 const char *display = RTEnvGet ("DISPLAY"); 527 if (display) 528 env = Utf8StrFmt ("DISPLAY=%s", display); 529 } 525 Utf8Str str; 526 const char *pszDisplay = RTEnvGet("DISPLAY"); 527 if (pszDisplay) 528 str.append(Utf8StrFmt("DISPLAY=%s\n", pszDisplay)); 529 const char *pszXAuth = RTEnvGet("XAUTHORITY"); 530 if (pszXAuth) 531 str.append(Utf8StrFmt("XAUTHORITY=%s\n", pszXAuth)); 532 env = Bstr(str); 530 533 #endif 531 534 ComPtr<IProgress> progress; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r23223 r23285 1004 1004 #if defined (Q_WS_X11) 1005 1005 /* make sure the VM process will start on the same display as the Selector */ 1006 { 1007 const char *display = RTEnvGet ("DISPLAY"); 1008 if (display) 1009 env.sprintf ("DISPLAY=%s", display); 1010 } 1006 const char *display = RTEnvGet ("DISPLAY"); 1007 if (display) 1008 env.append(QString("DISPLAY=%1\n").arg(display)); 1009 const char *xauth = RTEnvGet ("XAUTHORITY"); 1010 if (xauth) 1011 env.append(QString("XAUTHORITY=%1\n").arg(xauth)); 1011 1012 #endif 1012 1013
Note:
See TracChangeset
for help on using the changeset viewer.