-
Notifications
You must be signed in to change notification settings - Fork 864
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
NetBeans uses the wrong icon on linux since NB 22 #7734
Comments
I think it would be OK to use a 256x256 png file here instead of the harder-to-generate ICNS format, or the SVG format which can look different based on which library is used to render it. That's what I ended up doing for Linux for my own app, after testing each option on Ubuntu. In my own icon's case the rendering of shadows looked weird when the SVG version was used, though my app has a more complicated logo. |
I also agree, either a PNG or the SVG. Perhaps the SVG icon should work well with different renderers in this particular case as it is composed of single colour polygons, no shadows, halftones or complex curves. |
we could probably also do both. png and svg. Potentially also designate the mac specific icon as a variant of the actual logo. e.g: |
The SVG from NBPackage should be a good option to bring in as it's been quite widely tested, and in use for the ASF and community RPM and DEB packages. As yet I don't think we've had a report of it not displaying anywhere? If added, it will need a RAT exclusion. Do not try and add the Apache license - for some reason this will cause it to fail to display in certain areas of certain versions of GNOME. 🤷 We should probably also add a 48x48 PNG, amongst other resolutions. That is meant to be the baseline requirement in the icon spec - https://specifications.freedesktop.org/icon-theme-spec/latest/#install_icons The RPM and DEB packages include a 48x48 PNG and an SVG at The That strategy should probably be used elsewhere, but with the two icons in a suitable location - Snap / Flatpak paths, or user local share icons. |
Am I missing something obvious? Isn't the solution trivial? Restore the original icns File, rename the current one to "netbeans-macos.icns" and adjust the references? |
Personally I don't see why the Apple Icon Image file should support anything other than macOS? It's not even preferred there any more. Despite what is implied in the issue report, it's not a vector image either. Let's provide actually useful formats for other OS (higher resolution The flatpak package is not using this icon because they want an |
I don't see why it should not. Before someone decided to mutilate the |
Sure, but it is not part of the XDG spec. Use https://github.com/apache/netbeans-nbpackage/blob/master/src/main/resources/org/apache/netbeans/nbpackage/apache-netbeans.svg and you'll still get a nice high resolution in GNOME just fine. EDIT : How were you configuring GNOME to pick up the |
I use the zip distribution and that has now either the mutilated NetBeans icon in
I use alacarte to create a new menu entry, add a new entry in "Development", choose "NetBeans" as name, enter the path to the |
It was not mutilated, it was brought into line with the design guidelines for its defined purpose on macOS (dock icon in the launcher). Download the SVG and choose that for your icon for now, and let's get that SVG and higher resolution PNGs in before NB24. In fact the PNG are already in https://github.com/apache/netbeans/tree/master/platform/core.startup/src/org/netbeans/core/startup they just need copying and renaming to https://github.com/apache/netbeans/tree/master/nb/ide.branding/release I was using those from the source tree when I was manually crafting |
@mbien 100% agree, and this also duplicates #4881 Let's fix that in NB24. What I object to is changing the semantics of the existing .icns file, which is in there to be used in the launcher to provide the macOS dock icon. EDIT : the question was relevant in the sense that I wanted to know whether the wrong icon was being picked up in any other way than people explicitly choosing the wrong icon file! 😄 |
Apache NetBeans version
Apache NetBeans 22
What happened
I noticed that my quicklaunch shortcut on linux was actually using the
.icns
file since there was no other vector graphics file it could use (I can't select the png), it looks now like:expected:
There is also the risk that linux distributions will start using the mac icon at some point since most migrated away from
.png
s by now and there is no svg in./nb
installing NB on fedora from their Flathub repo does also use the MacOS icon which seems to confirm my suspicion above:
refs:
apache/netbeans-nbpackage#51
#7127
#7132
Language / Project Type / NetBeans Component
No response
How to reproduce
install NB on linux and check which icon is registered, the icon on top of the white rounded rectangle is meant for mac.
Did this work correctly in an earlier version?
No / Don't know
Operating System
linux, gnome
JDK
21
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: