Skip to content

bug: [MacOS] - do not show the icon of the game #1413

@jvondermarck

Description

@jvondermarck

Describe the bug
When I run the game on my mac, it shows the default jar folder icon. I don't know if it is a problem just from the .jar file in general, but since there is a method in FXGL to set the icon picture, why it wouldn't work on MacOS ?

To Reproduce
Steps to reproduce the behavior:

  1. Run the .jar game on MacOS

Expected behavior
It should show the icon I set in the code, such as

@Override
protected void initSettings(GameSettings settings) {
    gui.initSettings(settings);
    settings.setAppIcon("icon.png");
    settings.setTitle("Dinosaur Exploder");
}

Screenshots
Image

Runtime info(please complete the following information):

  • OS and version: MacOS Sequoia 15.3.2 (24D81)
  • FXGL version : 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions