- java.lang.Object
-
- util.misc.OperatingSystem
-
public class OperatingSystem extends java.lang.Object
Checks which OS is used. Uses the BrowserLauncher-Detection-Code- Since:
- 2.2
- Author:
- bodum
-
-
Constructor Summary
Constructors Constructor Description OperatingSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
is64Bit()
static boolean
isGNOME()
static boolean
isKDE()
static boolean
isLinux()
static boolean
isMacOs()
static boolean
isOther()
static boolean
isWindows()
static boolean
isWindows64()
-
-
-
Method Detail
-
isWindows
public static boolean isWindows()
- Returns:
- true, if the Operating System is Windows
-
isMacOs
public static boolean isMacOs()
- Returns:
- true, if the Operating System is MacOS
-
isLinux
public static boolean isLinux()
- Returns:
True
, if the Operation System is Linux.- Since:
- 2.2.4/2.6
-
isOther
public static boolean isOther()
- Returns:
- true, if the Operating System is not Windows or MacOS
-
isWindows64
public static boolean isWindows64()
- Returns:
- true, if the OS is Windows with 64 bit
- Since:
- 3.0
-
is64Bit
public static boolean is64Bit()
- Returns:
true
if the OS is a 64 bit OS.- Since:
- 4.0.1
-
isKDE
public static boolean isKDE()
- Returns:
- true, if a KDE session is running
- Since:
- 3.0
-
isGNOME
public static boolean isGNOME()
- Returns:
- true, if a GNOME session is running
- Since:
- 3.4.5
-
-