Package net.sourceforge.jnlp.util
Class XDesktopEntry
java.lang.Object
net.sourceforge.jnlp.util.XDesktopEntry
- All Implemented Interfaces:
GenericDesktopEntry
This class builds a (freedesktop.org) desktop entry out of a
JNLPFile
. 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDesktopShortcuts(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 entryvoidvoidstatic Stringstatic Stringstatic StringvoidrefreshExistingShortcuts(boolean desktop, boolean menu)
-
Field Details
-
JAVA_ICON_NAME
- See Also:
-
BROWSERS
-
FAVICON
- See Also:
-
-
Constructor Details
-
XDesktopEntry
Create a XDesktopEntry for the given JNLP file- Parameters:
file- aJNLPFilethat indicates the application to launch
-
-
Method Details
-
getBrowserBin
-
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
- Specified by:
getGeneratedJnlpFileNamein interfaceGenericDesktopEntry
-
getDesktopIconFile
- Specified by:
getDesktopIconFilein interfaceGenericDesktopEntry
-
getLinuxMenuIconFile
- Specified by:
getLinuxMenuIconFilein interfaceGenericDesktopEntry
-
getDesktopIconFileName
- Specified by:
getDesktopIconFileNamein interfaceGenericDesktopEntry
-
findFreedesktopOrgDesktopPathCatch
-
createShortcutOnWindowsDesktop
- Specified by:
createShortcutOnWindowsDesktopin interfaceGenericDesktopEntry- Throws:
IOException
-
createWindowsMenu
- Specified by:
createWindowsMenuin interfaceGenericDesktopEntry- Throws:
IOException
-