aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2017-01-10 10:01:21 +0100
committerIngo Bauersachs <ingo@jitsi.org>2017-01-10 10:01:21 +0100
commit59c28f3b0eed75ed0f88bcda00f379906c3d00c9 (patch)
treed1829a981c2b3f9c260f14f08205e07bab1ab5fb /src
parent11d0c16f315806ed7cce19dfe235a1cd7823214f (diff)
downloadjitsi-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.java4
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;
}