diff --git a/core/src/main/java/net/sourceforge/jnlp/util/WindowsDesktopEntry.java b/core/src/main/java/net/sourceforge/jnlp/util/WindowsDesktopEntry.java index cd8778b23..fda7a3aa9 100644 --- a/core/src/main/java/net/sourceforge/jnlp/util/WindowsDesktopEntry.java +++ b/core/src/main/java/net/sourceforge/jnlp/util/WindowsDesktopEntry.java @@ -89,7 +89,7 @@ public void createShortcutOnWindowsDesktop() throws IOException { sl.setIconLocation(iconLocation.get()); } final String path = getDesktopLnkPath(); - LOG.debug("Desktop Link Path : {}", path); + LOG.debug("Desktop Entry Link Path : {}", path); sl.saveTo(path); // write shortcut path to list manageShortcutList(path); @@ -144,11 +144,14 @@ public void createWindowsMenu() throws IOException { ul.setIconLocation(iconLocation.get()); } final String link = getShortcutFileName(); - sl.saveTo(path + "/" + link); - ul.saveTo(path + "/Uninstall " + link); + final String menuLinkpath = path + "/" + link; + LOG.debug("Menu Entry Link Path : {}", menuLinkpath); + sl.saveTo(menuLinkpath); + final String uninstallLinkPath = path + "/Uninstall " + link; + ul.saveTo(uninstallLinkPath); // write shortcuts to list - manageShortcutList(path + "/" + link); - manageShortcutList(path + "/Uninstall " + link); + manageShortcutList(menuLinkpath); + manageShortcutList(uninstallLinkPath); } private void manageShortcutList(String path) throws IOException { diff --git a/core/src/main/java/net/sourceforge/jnlp/util/XDesktopEntry.java b/core/src/main/java/net/sourceforge/jnlp/util/XDesktopEntry.java index d49dc8341..47274dcfc 100644 --- a/core/src/main/java/net/sourceforge/jnlp/util/XDesktopEntry.java +++ b/core/src/main/java/net/sourceforge/jnlp/util/XDesktopEntry.java @@ -234,7 +234,7 @@ private void installMenuLauncher(AccessWarningPaneComplexReturn.ShortcutResult i try { File f = getLinuxMenuIconFile(); FileUtils.saveFileUtf8(getContent(true, info), f); - LOG.info("Menu item created: {}", f.getAbsolutePath()); + LOG.info("Installing Menu Launcher : Menu item created: {}", f.getAbsolutePath()); } catch (FileNotFoundException e) { LOG.error(IcedTeaWebConstants.DEFAULT_ERROR_MESSAGE, e); } catch (IOException e) { @@ -262,7 +262,7 @@ private void installDesktopLauncher(AccessWarningPaneComplexReturn.ShortcutResul String[] execString = new String[] { "xdg-desktop-icon", "install", "--novendor", shortcutFile.getCanonicalPath() }; - LOG.debug("Executing: " + Arrays.toString(execString)); + LOG.debug("Installing Desktop Launcher : Executing: " + Arrays.toString(execString)); ProcessBuilder pb = new ProcessBuilder(execString); pb.inheritIO(); Process installer = pb.start();