On Tue, 12 Aug 2025 00:46:44 GMT, Alexey Semenyuk <[email protected]> wrote:
>> - Support a new "app-dir" value of `win-shortcut`, `win-menu`, and
>> `linux-shortcut` properties in additional launcher property files.
>> - Support an optional value of `--win-shortcut`, `--win-menu`, and
>> `--linux-shortcut` CLI options. The valid value is "app-dir".
>>
>> If a value of any property/CLI option from the above list is set to
>> "app-dir", the startup directory of the corresponding shortcut will be set
>> to the "app" subdirectory of the installation directory.
>>
>> If a CLI option from the above list doesn't have a value, the startup
>> directory of the corresponding shortcut for the main launcher will be set to
>> the installation directory on Windows and will not be set on Linux. This is
>> the existing behavior; it has not changed.
>>
>> If a value of a property from the above list evaluates to `true`, the
>> startup directory of the corresponding shortcut for the additional launcher
>> will be set to the installation directory on Windows and will not be set on
>> Linux. This is the existing behavior; it has not changed.
>>
>> Added test cases to AddLShortcut test implicitly.
>>
>> Reworked one of the additional launchers in AddLShortcut.test() to allow
>> verification of the working directory when the launcher is invoked through
>> the shortcut in manual tests.
>
> Alexey Semenyuk has updated the pull request incrementally with two
> additional commits since the last revision:
>
> - Blessed modifiers order
> - Rework AddLShortcutTest.test() to verify the working directory in which
> one of the additional launchers is started when invoked through a shortcut.
test/jdk/tools/jpackage/share/AddLShortcutTest.java line 95:
> 93: public class AddLShortcutTest {
> 94:
> 95: @Test(ifNotOS = OperatingSystem.MACOS)
Do we really need both `(ifNotOS = OperatingSystem.MACOS)` and `(os.family !=
"mac")`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26707#discussion_r2268328316