GenericDesktopEntrypublic class XDesktopEntry extends java.lang.Object implements GenericDesktopEntry
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| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String[] |
BROWSERS |
|
static java.lang.String |
FAVICON |
|
static java.lang.String |
JAVA_ICON_NAME |
| Constructor | Description |
|---|---|
XDesktopEntry(JNLPFile file) |
Create a XDesktopEntry for the given JNLP file
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
void |
createShortcutOnWindowsDesktop() |
|
void |
createWindowsMenu() |
|
static java.lang.String |
findFreedesktopOrgDesktopPathCatch() |
|
static java.lang.String |
getBrowserBin() |
|
java.io.File |
getDesktopIconFile() |
|
java.lang.String |
getDesktopIconFileName() |
|
java.io.File |
getGeneratedJnlpFileName() |
|
static java.lang.String |
getJavaWsBin() |
|
java.io.File |
getLinuxMenuIconFile() |
|
void |
refreshExistingShortcuts(boolean desktop,
boolean menu) |
public static final java.lang.String JAVA_ICON_NAME
public static final java.lang.String[] BROWSERS
public static final java.lang.String FAVICON
public static java.lang.String getBrowserBin()
public static java.lang.String getJavaWsBin()
public void createDesktopShortcuts(net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult menu,
net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn.ShortcutResult desktop,
boolean isSigned)
createDesktopShortcuts in interface GenericDesktopEntrymenu - how to create in menudesktop - how to create on desktopisSigned - if it is signedpublic void refreshExistingShortcuts(boolean desktop,
boolean menu)
refreshExistingShortcuts in interface GenericDesktopEntrypublic java.io.File getGeneratedJnlpFileName()
getGeneratedJnlpFileName in interface GenericDesktopEntrypublic java.io.File getDesktopIconFile()
getDesktopIconFile in interface GenericDesktopEntrypublic java.io.File getLinuxMenuIconFile()
getLinuxMenuIconFile in interface GenericDesktopEntrypublic java.lang.String getDesktopIconFileName()
getDesktopIconFileName in interface GenericDesktopEntrypublic static java.lang.String findFreedesktopOrgDesktopPathCatch()
public void createShortcutOnWindowsDesktop()
throws java.io.IOException
createShortcutOnWindowsDesktop in interface GenericDesktopEntryjava.io.IOExceptionpublic void createWindowsMenu()
throws java.io.IOException
createWindowsMenu in interface GenericDesktopEntryjava.io.IOException