diff options
author | Sravan Kumar Lakkimsetti | 2016-10-12 13:48:56 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2016-10-13 10:00:37 +0000 |
commit | 7259e7994a1de3254e321b735a3f375c5d961d09 (patch) | |
tree | f55c3bdc8e8aa0b887090238572e12acb9d415e3 /features/org.eclipse.equinox.executable.feature/library/eclipse.c | |
parent | 5ba8e1c6aa4d907d403177a880780b74863fe6b3 (diff) | |
download | rt.equinox.framework-7259e7994a1de3254e321b735a3f375c5d961d09.tar.gz rt.equinox.framework-7259e7994a1de3254e321b735a3f375c5d961d09.tar.xz rt.equinox.framework-7259e7994a1de3254e321b735a3f375c5d961d09.zip |
Bug 472042 - Regression: eclipse -noSplash prints errors if no DISPLAYY20161020-1000
is set on Linux
Change-Id: I64cbc93b33a03d531f76f809a85a2ce7c6fe792b
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library/eclipse.c')
-rw-r--r-- | features/org.eclipse.equinox.executable.feature/library/eclipse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse.c b/features/org.eclipse.equinox.executable.feature/library/eclipse.c index 8356ecd30..1e7fc2054 100644 --- a/features/org.eclipse.equinox.executable.feature/library/eclipse.c +++ b/features/org.eclipse.equinox.executable.feature/library/eclipse.c @@ -202,7 +202,6 @@ static _TCHAR* returnCodeMsg = _T_ECLIPSE("Java was started but returned exit co static _TCHAR* goVMMsg = _T_ECLIPSE("Start VM: %s\n"); static _TCHAR* pathMsg = _T_ECLIPSE("%s in your current PATH"); static _TCHAR* shareMsg = _T_ECLIPSE("No exit data available."); -static _TCHAR* gtkCheck = _T_ECLIPSE("GTK+ Version Check"); static _TCHAR* noVMMsg = _T_ECLIPSE("A Java Runtime Environment (JRE) or Java Development Kit (JDK)\n\ must be available in order to run %s. No Java virtual machine\n\ @@ -618,7 +617,12 @@ static int _run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[]) #ifndef _WIN32 #ifndef MACOSX - displayMessage( officialName, gtkCheck ); + if ((!suppressErrors) && (!noSplash)) { + char *display = getenv("DISPLAY"); + if (display != NULL) { + initWindowSystem( &argc, argv, 1); + } + } #endif #endif /* the startup jarFile goes on the classpath */ |