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- Author:
- Omair Majid
This class builds also (freedesktop.org) menu entry out of a
JNLPFileFew notes valid November 2014: Mate/gnome 2/xfce - no meter of exec or icon put icon to defined/"others" Category - name is as expected Name's value - if removed, xfce kept icon until login/logout kde 4 - unknown Cathegory is sorted to Lost & Found -thats bad - if icon is not found, nothing shows - name is GENERIC NAME and then little name Gnome 3 shell - exec must be valid program! - also had issues with icon conclusion: - backup icon to .config - use "Network" category - force valid launcher, (not so proudly) Jiri Vanek
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDesktopShortcuts(AccessWarningPaneComplexReturn.ShortcutResult menu, AccessWarningPaneComplexReturn.ShortcutResult desktop) Create a desktop shortcut for this desktop entryvoidvoidstatic Stringstatic StringvoidrefreshExistingShortcuts(boolean desktop, boolean menu)
-
Field Details
-
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
-
createDesktopShortcuts
public void createDesktopShortcuts(AccessWarningPaneComplexReturn.ShortcutResult menu, AccessWarningPaneComplexReturn.ShortcutResult desktop) Create a desktop shortcut for this desktop entry- Specified by:
createDesktopShortcutsin interfaceGenericDesktopEntry- Parameters:
menu- how to create in menudesktop- how to create on desktop
-
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
-
findFreedesktopOrgDesktopPathCatch
-
createShortcutOnWindowsDesktop
public void createShortcutOnWindowsDesktop()- Specified by:
createShortcutOnWindowsDesktopin interfaceGenericDesktopEntry
-
createWindowsMenu
public void createWindowsMenu()- Specified by:
createWindowsMenuin interfaceGenericDesktopEntry
-