-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings icon_path doesn't seem to do anything on Web or MacOS? #639
Comments
looks like the path is icon_path: |
When I changed it, I get:
|
Regarding desktop icons, winit (the library quicksilver uses for windowing) does not support window icons on macOS. If upstream support is added, then it will work fine. Regarding the path to the icon on desktop, I think that's definitely a bug. I think that the path is wrong on the web, which is your problem there. Try just 'maze.png' and compile for the web. |
I get the same (Is it trying to load the image from the filesystem in the web version? Is there some sort of "resource bundle" task I need to run first? Or maybe a config file I need to write?) |
you don't need to bundle it, as cargo web just allows you to reference everything inside the static folder as if that was the root. (So, maze.png instead of static/maze.png). However, a browser already automatically asks for the icon file at |
Describe the bug
I've tried a few different variants (my latest is here), but no matter what I put there, the MacOS icon in the dock is still the standard "exec" icon, and there is no favicon on the webpage…
To Reproduce
Add an
icon_path
to your settings, look for that icon, fail to find it. 😉Also when I run
cargo web deploy
and try to run the resulting code, it gives me the error:Environment and versions (please complete the following information):
The text was updated successfully, but these errors were encountered: