Package net.sourceforge.jnlp.util
Class XDesktopEntry
- java.lang.Object
-
- net.sourceforge.jnlp.util.XDesktopEntry
-
- All Implemented Interfaces:
GenericDesktopEntry
public class XDesktopEntry extends java.lang.Object implements GenericDesktopEntry
This class builds a (freedesktop.org) desktop entry out of aJNLPFile. This entry can be used to install desktop shortcuts. See xdg-desktop-icon (1) and http://standards.freedesktop.org/desktop-entry-spec/latest/ for more information
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]BROWSERSstatic java.lang.StringFAVICONstatic java.lang.StringJAVA_ICON_NAME
-
Constructor Summary
Constructors Constructor Description XDesktopEntry(JNLPFile file)Create a XDesktopEntry for the given JNLP file
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDesktopShortcuts(net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult menu, net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult desktop, boolean isSigned)Create a desktop shortcut for this desktop entryvoidcreateShortcutOnWindowsDesktop()voidcreateWindowsMenu()static java.lang.StringfindFreedesktopOrgDesktopPathCatch()static java.lang.StringgetBrowserBin()java.io.FilegetDesktopIconFile()java.lang.StringgetDesktopIconFileName()java.io.FilegetGeneratedJnlpFileName()static java.lang.StringgetJavaWsBin()java.io.FilegetLinuxMenuIconFile()voidrefreshExistingShortcuts(boolean desktop, boolean menu)
-
-
-
Field Detail
-
JAVA_ICON_NAME
public static final java.lang.String JAVA_ICON_NAME
- See Also:
- Constant Field Values
-
BROWSERS
public static final java.lang.String[] BROWSERS
-
FAVICON
public static final java.lang.String FAVICON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBrowserBin
public static java.lang.String getBrowserBin()
-
getJavaWsBin
public static java.lang.String getJavaWsBin()
-
createDesktopShortcuts
public void createDesktopShortcuts(net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult menu, net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult desktop, boolean isSigned)Create a desktop shortcut for this desktop entry- Specified by:
createDesktopShortcutsin interfaceGenericDesktopEntry- Parameters:
menu- how to create in menudesktop- how to create on desktopisSigned- if it is signed
-
refreshExistingShortcuts
public void refreshExistingShortcuts(boolean desktop, boolean menu)- Specified by:
refreshExistingShortcutsin interfaceGenericDesktopEntry
-
getGeneratedJnlpFileName
public java.io.File getGeneratedJnlpFileName()
- Specified by:
getGeneratedJnlpFileNamein interfaceGenericDesktopEntry
-
getDesktopIconFile
public java.io.File getDesktopIconFile()
- Specified by:
getDesktopIconFilein interfaceGenericDesktopEntry
-
getLinuxMenuIconFile
public java.io.File getLinuxMenuIconFile()
- Specified by:
getLinuxMenuIconFilein interfaceGenericDesktopEntry
-
getDesktopIconFileName
public java.lang.String getDesktopIconFileName()
- Specified by:
getDesktopIconFileNamein interfaceGenericDesktopEntry
-
findFreedesktopOrgDesktopPathCatch
public static java.lang.String findFreedesktopOrgDesktopPathCatch()
-
createShortcutOnWindowsDesktop
public void createShortcutOnWindowsDesktop() throws java.io.IOException- Specified by:
createShortcutOnWindowsDesktopin interfaceGenericDesktopEntry- Throws:
java.io.IOException
-
createWindowsMenu
public void createWindowsMenu() throws java.io.IOException- Specified by:
createWindowsMenuin interfaceGenericDesktopEntry- Throws:
java.io.IOException
-
-