Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Eclipse Installer makes first hand experience on Linux worse

On 4 July 2016 at 16:02, Ed Merks <ed.merks@xxxxxxxxx> wrote:
> In any case, it would definitely be best if the launched IDE didn't inherit
> the installer's choice.  I'm not sure the current mechanism/issue that makes
> it inherit the choice.

The inheriting happens because --launcher.GTK_version tells launcher
(aka eclipse-inst) to set SWT_GTK3 [1] environment variable
appropriately. That environment value is read by SWT java code [2] to
determine which GTK to use. But because it is an environment variable,
children processes inherit that value, so when oomph launches
installed eclipse, the child Eclipse inherits the SWT_GTK3 variable
value.

[1] https://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/features/org.eclipse.equinox.executable.feature/library/eclipse.c#n511
[2] https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20PI/gtk/org/eclipse/swt/internal/gtk/OS.java#n23

HTH
Jonah


Back to the top