@return true if -Xdock:icon was specified on the command line
()
| 576 | * @return true if -Xdock:icon was specified on the command line |
| 577 | */ |
| 578 | private boolean dockIconSpecified() { |
| 579 | // TODO This is incomplete... Haven't yet found a way to figure out if |
| 580 | // the app has an icns file specified already. Help? |
| 581 | List<String> jvmArgs = |
| 582 | ManagementFactory.getRuntimeMXBean().getInputArguments(); |
| 583 | for (String arg : jvmArgs) { |
| 584 | if (arg.startsWith("-Xdock:icon")) { |
| 585 | return true; // dock image already set |
| 586 | } |
| 587 | } |
| 588 | return false; |
| 589 | } |
| 590 | |
| 591 | |
| 592 | @Override |