is KDE - Java Native OS

Java examples for Native OS:OS

Description

is KDE

Demo Code

/*******************************************************************************
 * Copyright (c) 2011 Zeljko Zirikovic./*  www .  j  ava  2  s  . co  m*/
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GPL which 
 * accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 ******************************************************************************/
//package com.java2s;

public class Main {
    public static boolean isKDE() {
        String value = "";
        try {
            value = System.getenv("KDE_FULL_SESSION");
        } catch (Throwable t) {
        }

        return "true".equals(value);
    }
}

Related Tutorials