Skip to content

Commit f6e9f44

Browse files
Fix Linux FA description
1 parent f9b6dd2 commit f6e9f44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jdk.jpackage/share/classes/jdk/jpackage/internal/LauncherFromParams.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ Launcher create(Map<String, ? super Object> params) throws ConfigException {
9090
return toSupplier(() -> {
9191
final var faGroupBuilder = FileAssociationGroup.build();
9292

93-
if (OperatingSystem.current() == OperatingSystem.WINDOWS) {
93+
if (OperatingSystem.current() == OperatingSystem.MACOS) {
94+
FA_DESCRIPTION.copyInto(faParams, faGroupBuilder::description);
95+
} else {
9496
faGroupBuilder.description(FA_DESCRIPTION.findIn(faParams).orElseGet(() -> {
9597
return String.format("%s association", toSupplier(builder::create).get().name());
9698
}));
97-
} else {
98-
FA_DESCRIPTION.copyInto(faParams, faGroupBuilder::description);
9999
}
100100

101101
FA_ICON.copyInto(faParams, faGroupBuilder::icon);

0 commit comments

Comments
 (0)