Skip to content

Commit fdce7d8

Browse files
committed
MacOSPlatform: fix osName()
It needs to match the os.name system property. Noticed by Jan Eglinger.
1 parent e65e4e9 commit fdce7d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/scijava/plugins/platforms/macos/MacOSPlatform.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public class MacOSPlatform extends AbstractPlatform {
7878

7979
@Override
8080
public String osName() {
81-
return "macOS";
81+
// NB: The value of the os.name system property for activation purposes;
82+
// see org.scijava.platform.Platform#isTarget().
83+
return "Mac OS X";
8284
}
8385

8486
@Override

0 commit comments

Comments
 (0)