Class XDesktopEntry

  • All Implemented Interfaces:
    GenericDesktopEntry

    public class XDesktopEntry
    extends java.lang.Object
    implements 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 Detail

      • BROWSERS

        public static final java.lang.String[] BROWSERS
    • Constructor Detail

      • XDesktopEntry

        public XDesktopEntry​(JNLPFile file)
        Create a XDesktopEntry for the given JNLP file
        Parameters:
        file - a JNLPFile that indicates the application to launch
    • 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:
        createDesktopShortcuts in interface GenericDesktopEntry
        Parameters:
        menu - how to create in menu
        desktop - how to create on desktop
        isSigned - if it is signed
      • findFreedesktopOrgDesktopPathCatch

        public static java.lang.String findFreedesktopOrgDesktopPathCatch()