How to set app name in macOS, gradle?
Rob Nikander
rob.nikander at gmail.com
Thu Sep 17 17:11:00 UTC 2020
Hi,
I’m trying to set the text shown in the macOS menubar. The advice I see online says to use -Xdock:name, but when I try that, I still see “java” in the menubar. Is there a way to make it use “MyAppName”? Some of my build.gradle.kts file is shown below.
Rob
plugins {
application
kotlin("jvm") version "1.4.10"
id("org.openjfx.javafxplugin") version "0.0.9"
}
application {
mainClass.set(“myapp.MainKt")
applicationName = "MyAppName"
applicationDefaultJvmArgs = listOf(
"-Xdock:name=MyAppName"
)
}
javafx {
version = "15"
modules = listOf("javafx.controls”)
}
More information about the openjfx-dev
mailing list