On Mon, 21 Sep 2020 14:05:08 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:
>> https://bugs.openjdk.java.net/browse/JDK-8231591 >> >> - Added MultiLauncherTwoPhaseTest which uses predefine app image with >> multiple launcher and tests to make sure installer >> will create shortcuts for all launchers. >> - Fixed Linux DesktopIntegration to create shortcuts for additional launcher >> if we using pre-define app image. > > src/jdk.incubator.jpackage/linux/classes/jdk/incubator/jpackage/internal/DesktopIntegration.java > line 549: > >> 547: private final List<LinuxFileAssociation> associations; >> 548: >> 549: private static boolean initAppImageLaunchers = true; > > What is the logic behind static variable? It is used to avoid infinite calls in DesktopIntegration(). I modified it by removing PREDEFINED_APP_IMAGE from launcherParams. ------------- PR: https://git.openjdk.java.net/jdk/pull/263