Skip to content

Commit cffb6a2

Browse files
HannesWellakurtakov
authored andcommitted
Support disabling the GTK SessionManagerDBus via environment variables
For example this simplifies disabling the SessionManagerDBus in CI environments where no bus is available.
1 parent 788ba23 commit cffb6a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/SessionManagerDBus.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public void remove() {
111111
public SessionManagerDBus() {
112112
// Allow to disable session manager, for example in case it conflicts with
113113
// session manager connection implemented in application itself.
114-
boolean isDisabled = System.getProperty("org.eclipse.swt.internal.SessionManagerDBus.disable") != null;
114+
boolean isDisabled = System.getProperty("org.eclipse.swt.internal.SessionManagerDBus.disable") != null
115+
|| System.getenv("org.eclipse.swt.internal.SessionManagerDBus.disable") != null;
115116
if (isDisabled) return;
116117

117118
start();

0 commit comments

Comments
 (0)