org.jopendocument.util
Class DesktopEnvironment
java.lang.Object
org.jopendocument.util.DesktopEnvironment
- Direct Known Subclasses:
- DesktopEnvironment.Gnome, DesktopEnvironment.KDE, DesktopEnvironment.Mac, DesktopEnvironment.Unknown, DesktopEnvironment.Windows, DesktopEnvironment.XFCE
public abstract class DesktopEnvironment
- extends java.lang.Object
A desktop environment like Gnome or MacOS.
- Author:
- Sylvain CUAZ
- See Also:
getDE()
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
test
public static final boolean test(java.lang.String... command)
throws RTInterruptedException
- Execute the passed command and test its return code.
- Parameters:
command
- the command to execute
.
- Returns:
false
if the return code
is not 0 or an
exception is thrown.
- Throws:
RTInterruptedException
- if this is interrupted while waiting.
cmdSubstitution
public static final java.lang.String cmdSubstitution(java.lang.Process p)
throws java.io.IOException
- Throws:
java.io.IOException
getDE
public static final DesktopEnvironment getDE()
resetDE
public static final void resetDE()
getVersion
public final java.lang.String getVersion()
getDocumentsFolder
public java.io.File getDocumentsFolder()
getPreferencesFolder
public java.io.File getPreferencesFolder(java.lang.String appName)
quoteParamForExec
public java.lang.String quoteParamForExec(java.lang.String s)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)