Class WindowsDesktopEntry
java.lang.Object
net.sourceforge.jnlp.util.WindowsDesktopEntry
- All Implemented Interfaces:
GenericDesktopEntry
Based on https://github.com/DmitriiShamrikov/mslinks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JNLPFileprivate final LazyLoaded<String> private static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDesktopShortcuts(AccessWarningPaneComplexReturn.ShortcutResult menu, AccessWarningPaneComplexReturn.ShortcutResult desktop) voidvoidprivate static Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate voidmanageShortcutList(String path) private booleanneedToAddNewShortcutEntry(String path, List<String> lines) private StringreadAllLines(File shortcutFile) voidrefreshExistingShortcuts(boolean desktop, boolean menu) private String
-
Field Details
-
LOG
-
file
-
iconLocation
-
-
Constructor Details
-
WindowsDesktopEntry
-
-
Method Details
-
getShortcutFileName
-
getShortcutName
-
sanitize
-
getDesktopLnkPath
-
getDesktopIconFile
- Specified by:
getDesktopIconFilein interfaceGenericDesktopEntry
-
createShortcutOnWindowsDesktop
- Specified by:
createShortcutOnWindowsDesktopin interfaceGenericDesktopEntry- Throws:
IOException
-
getJavaWsBin
- Throws:
FileNotFoundException
-
createWindowsMenu
- Specified by:
createWindowsMenuin interfaceGenericDesktopEntry- Throws:
IOException
-
manageShortcutList
- Throws:
IOException
-
readAllLines
- Throws:
IOException
-
needToAddNewShortcutEntry
-
createDesktopShortcuts
public void createDesktopShortcuts(AccessWarningPaneComplexReturn.ShortcutResult menu, AccessWarningPaneComplexReturn.ShortcutResult desktop) - Specified by:
createDesktopShortcutsin interfaceGenericDesktopEntry
-
refreshExistingShortcuts
public void refreshExistingShortcuts(boolean desktop, boolean menu) - Specified by:
refreshExistingShortcutsin interfaceGenericDesktopEntry
-
getGeneratedJnlpFileName
- Specified by:
getGeneratedJnlpFileNamein interfaceGenericDesktopEntry
-
getLinuxMenuIconFile
- Specified by:
getLinuxMenuIconFilein interfaceGenericDesktopEntry
-
quoted
-
desktopPath
-