commit 2f8e41c058ee6ed059e15f4a956d532162459df3
Author: Tobias Wich <tobias.wich@ecsec.de>
Date:   Wed Sep 7 14:17:15 2016 +0200

    Disable Systray for Plasma
    
    The reason is that mouse events do not reach the JVM and thus the icon
    is not functional.
    
    See:
    - https://dev.openecard.org/boards/2/topics/120?r=124
    - https://bugs.kde.org/show_bug.cgi?id=358328
    - https://bugs.kde.org/show_bug.cgi?id=355504

diff --git a/clients/richclient/src/main/java/org/openecard/richclient/gui/AppTray.java b/clients/richclient/src/main/java/org/openecard/richclient/gui/AppTray.java
index c443d63..0d5723b 100644
--- a/clients/richclient/src/main/java/org/openecard/richclient/gui/AppTray.java
+++ b/clients/richclient/src/main/java/org/openecard/richclient/gui/AppTray.java
@@ -87,7 +87,7 @@ public class AppTray {
      * A loading icon is displayed.
      */
     public void beginSetup() {
-	if (SystemTray.isSupported()) {
+	if (isTraySupported()) {
 	    setupTrayIcon();
 	} else {
 	    setupFrame();
@@ -259,6 +259,19 @@ public class AppTray {
 	return isKde;
     }
 
+    private boolean isPlasma() {
+	if (isKde()) {
+	    return "5".equals(System.getenv("KDE_SESSION_VERSION"));
+	} else {
+	    return false;
+	}
+    }
+
+    private boolean isTraySupported() {
+	return SystemTray.isSupported()
+		&& ! isPlasma();
+    }
+
     private void setupFrame() {
 	trayAvailable = false;
 
