MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.4k stars 306 forks source link

In the MacOS Dock (application tray), the Makie Icon is missing #3770

Open kbarros opened 6 months ago

kbarros commented 6 months ago

In MacOS, the Makie plots are depicted as simple black box with the small green text "exec". Mouse-over shows that the application name is "julia". This is shown below:

image

My understanding is that Windows and Linux would show a pretty Makie icon instead.

asinghvi17 commented 6 months ago

Looks like GLFW doesn't have that functionality yet: https://github.com/glfw/glfw/pull/2293

jkrumbiegel commented 6 months ago

One weird thing about glfw on Mac is that this black thingy will stay open as long as the process that initialized glfw is still running. You can never close it, it doesn't close with the last window. I'm not sure what it actually represents but it's not the "window" per se so I guess that's why it doesn't show the window icon that Windows and Linux do.

ffreyer commented 1 month ago

Maybe it appears on glfwInit() and disappears on glfwTerminate() which happen automatically in GLFW.jl? https://github.com/JuliaGL/GLFW.jl/blob/d9037c290ad4c4182755bd2c55c38b09b894e051/src/GLFW.jl#L16-L37

ffreyer commented 1 month ago

I guess we can also close this since it's not something we can fix?

ws909 commented 1 month ago

It’s not a window icon, it’s Cocoa’s default fallback for the application icon. MacOS is application-based, not window-based.

It's fixed by specifying an icon and application name in the app's plist file inside the bundle, or you can specify the icon at runtime if the linked GLFW pull request is merged, however, it won't let you change the name.

SimonDanisch commented 1 month ago

I guess we'll need to wait for the PR then ;)