Project

General

Profile

RE: Open eCard unter Plasma nicht nutzbar ยป plasma-systray.patch

Tobias Wich, 09/07/2016 02:28 PM

View differences:

clients/richclient/src/main/java/org/openecard/richclient/gui/AppTray.java
87 87
     * A loading icon is displayed.
88 88
     */
89 89
    public void beginSetup() {
90
	if (SystemTray.isSupported()) {
90
	if (isTraySupported()) {
91 91
	    setupTrayIcon();
92 92
	} else {
93 93
	    setupFrame();
......
259 259
	return isKde;
260 260
    }
261 261

  
262
    private boolean isPlasma() {
263
	if (isKde()) {
264
	    return "5".equals(System.getenv("KDE_SESSION_VERSION"));
265
	} else {
266
	    return false;
267
	}
268
    }
269

  
270
    private boolean isTraySupported() {
271
	return SystemTray.isSupported()
272
		&& ! isPlasma();
273
    }
274

  
262 275
    private void setupFrame() {
263 276
	trayAvailable = false;
264 277

  
    (1-1/1)