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 TypeMethodDescriptionvoid
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 entryvoid
void
static String
static String
static String
void
refreshExistingShortcuts
(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
- aJNLPFile
that 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:
createDesktopShortcuts
in 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:
refreshExistingShortcuts
in interfaceGenericDesktopEntry
-
getGeneratedJnlpFileName
- Specified by:
getGeneratedJnlpFileName
in interfaceGenericDesktopEntry
-
getDesktopIconFile
- Specified by:
getDesktopIconFile
in interfaceGenericDesktopEntry
-
getLinuxMenuIconFile
- Specified by:
getLinuxMenuIconFile
in interfaceGenericDesktopEntry
-
getDesktopIconFileName
- Specified by:
getDesktopIconFileName
in interfaceGenericDesktopEntry
-
findFreedesktopOrgDesktopPathCatch
-
createShortcutOnWindowsDesktop
- Specified by:
createShortcutOnWindowsDesktop
in interfaceGenericDesktopEntry
- Throws:
IOException
-
createWindowsMenu
- Specified by:
createWindowsMenu
in interfaceGenericDesktopEntry
- Throws:
IOException
-