diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2017-01-10 10:01:21 +0100 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2017-01-10 10:01:21 +0100 |
commit | 59c28f3b0eed75ed0f88bcda00f379906c3d00c9 (patch) | |
tree | d1829a981c2b3f9c260f14f08205e07bab1ab5fb /src | |
parent | 11d0c16f315806ed7cce19dfe235a1cd7823214f (diff) | |
download | jitsi-59c28f3b0eed75ed0f88bcda00f379906c3d00c9.zip jitsi-59c28f3b0eed75ed0f88bcda00f379906c3d00c9.tar.gz jitsi-59c28f3b0eed75ed0f88bcda00f379906c3d00c9.tar.bz2 |
Ignore SystemTray when running in headless mode
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/sip/communicator/impl/osdependent/systemtray/SystemTray.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/osdependent/systemtray/SystemTray.java b/src/net/java/sip/communicator/impl/osdependent/systemtray/SystemTray.java index eeffd29..74baa16 100644 --- a/src/net/java/sip/communicator/impl/osdependent/systemtray/SystemTray.java +++ b/src/net/java/sip/communicator/impl/osdependent/systemtray/SystemTray.java @@ -17,6 +17,8 @@ */ package net.java.sip.communicator.impl.osdependent.systemtray; +import java.awt.*; + import javax.swing.*; import org.jitsi.util.*; @@ -45,7 +47,7 @@ public abstract class SystemTray { boolean disable = OsDependentActivator.getConfigurationService() .getBoolean(PNMAE_DISABLE_TRY, false); - if (disable) + if (disable || GraphicsEnvironment.isHeadless()) { return null; } |