Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308349

missing working directory option for launcher when invoked from shortcuts

XMLWordPrintable

    • generic
    • windows

      ADDITIONAL SYSTEM INFORMATION :
      openjdk 17.0.1, windows 10.

      A DESCRIPTION OF THE PROBLEM :
      When using jpackage to bundle an application the working directory is non-intuitive when invoked from shortcuts (Windows). There is no option in jpackage to change it, or it is poorly documented.

      There should be an option to specify that the shortcuts should use the application root ('app' directory) and not the installation root as the working directory. All paths in the application that refer to the local filesystem are broken with the default shortcut working directory. The "app" parent folder is imposed by the jpackage bundler as it is not part of the working directory.

      jpackage should be usable without having to insert a bundler-specific parent directory for all filesystem paths. This seems like a reasonable default behavior, however it should at least be configurable.

      Related
      https://bugs.openjdk.org/browse/JDK-8226904
      https://bugs.openjdk.org/browse/JDK-8257979





            asemenyuk Alexey Semenyuk
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: