8228744: file associations broken on linux. JDK-8200758-branch
authorherrick
Mon, 29 Jul 2019 18:31:18 -0400
branchJDK-8200758-branch
changeset 57587 16c4975e9e09
parent 57557 b4aa3d0c1431
child 57588 dac8f245de8e
8228744: file associations broken on linux. Reviewed-by: kcr
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxDebBundler.java
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxRpmBundler.java
--- a/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxDebBundler.java	Sat Jul 27 07:17:27 2019 -0400
+++ b/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxDebBundler.java	Mon Jul 29 18:31:18 2019 -0400
@@ -469,7 +469,7 @@
             installScripts.append(LINUX_INSTALL_DIR.fetchFrom(params));
             installScripts.append("/");
             installScripts.append(data.get("APPLICATION_FS_NAME"));
-            installScripts.append("/");
+            installScripts.append("/bin/");
             installScripts.append(
                     addLauncherData.get("APPLICATION_LAUNCHER_FILENAME"));
             installScripts.append(".desktop\n");
@@ -480,7 +480,7 @@
             removeScripts.append(LINUX_INSTALL_DIR.fetchFrom(params));
             removeScripts.append("/");
             removeScripts.append(data.get("APPLICATION_FS_NAME"));
-            removeScripts.append("/");
+            removeScripts.append("/bin/");
             removeScripts.append(
                     addLauncherData.get("APPLICATION_LAUNCHER_FILENAME"));
             removeScripts.append(".desktop\n");
--- a/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxRpmBundler.java	Sat Jul 27 07:17:27 2019 -0400
+++ b/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxRpmBundler.java	Mon Jul 29 18:31:18 2019 -0400
@@ -372,7 +372,7 @@
             installScripts.append(LINUX_INSTALL_DIR.fetchFrom(params));
             installScripts.append("/");
             installScripts.append(data.get("APPLICATION_FS_NAME"));
-            installScripts.append("/");
+            installScripts.append("/bin/");
             installScripts.append(addLauncherData.get(
                     "APPLICATION_LAUNCHER_FILENAME"));
             installScripts.append(".desktop\n");
@@ -382,7 +382,7 @@
             removeScripts.append(LINUX_INSTALL_DIR.fetchFrom(params));
             removeScripts.append("/");
             removeScripts.append(data.get("APPLICATION_FS_NAME"));
-            removeScripts.append("/");
+            removeScripts.append("/bin/");
             removeScripts.append(addLauncherData.get(
                     "APPLICATION_LAUNCHER_FILENAME"));
             removeScripts.append(".desktop\n");