macOS: Improper name formatting in About menu: 'freecad' -> 'FreeCAD'
Is there an existing issue for this?
- [x] I have searched the existing issues
Problem description
The About, Edit, and Quit menus on the macos version shows the menu entry as 'freecad' instead of 'FreeCAD':
Full version info
OS: macOS 15.4.1
Architecture: arm64
Version: 1.1.0dev.41488 (Git)
Build date: 2025/05/01 22:16:31
Build type: Release
Branch: main
Hash: b3a3b13603e7c48c6349080a893471ae9c105bc1
Python 3.11.12, Qt 6.7.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide
shiboken , xerces-c 3.2.5, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/macos
Logical DPI/Physical DPI/Pixel Ratio: 72/151.5/2
Installed mods:
* BIM021 2021.12.0
* fasteners 0.5.24
* sheetmetal 0.4.12
* Assembly4 0.50.15
Subproject(s) affected?
None
Anything else?
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Interestingly, when I build locally using the Pixi build process, it appears to have the proper mixed case. Both the legacy and new "weekly" build processes show the incorrect case as you've shown.
@oursland - Does the Github build process influence how the items in that menu are generated?
OS: macOS 15.4.1
Architecture: arm64
Version: 1.1.0dev.41488 (Git)
Build date: 2025/05/01 22:16:31
Build type: Unknown
Branch: main
Hash: b3a3b13603e7c48c6349080a893471ae9c105bc1
Python 3.11.12, Qt 6.7.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide
shiboken , xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: OpenLight.qss/OpenLight/
Logical DPI/Physical DPI/Pixel Ratio: 72/127.5/2
Installed mods:
* OpenTheme 2024.9.1
* AddonManager 2025.5.29a
* Telemetry 1.0.1
I believe the culprit is here: src/Gui/Dialogs/DlgAbout.cpp:AboutDialog::showOrHideImage():206. In the packaging on all platforms, the binaries are renamed freecad and freecadcmd in lowercase, which is likely the reason this is displayed as freecad.
The branding mechanism throughout FreeCAD is supposed to be to use the config map for ExeName as accessed as a via App::Application::Config()["ExeName"]. Unfortunately there are many references to QCoreApplication::applicationName() or qApp->applicationName(), which will reference the executable name until the call to setApplicationName() takes place to set it to the value of mConfig["ExeName"] which takes place in src/Gui/Application.cpp:Application::setAppNameAndIcon():2199.
A PR to correct all of these calls to the config entry would likely resolve this issue and any latent issues to be discovered.
@FreeCAD/maintainers could someone add the label "Good first issue" to this issue?
IMHO it's good to have another name for dev version so user can call dev FreeCAD or stable freecad without the need to specify the path.
flo@mymachine:~$ whereis freecad
freecad: /usr/bin/freecad /usr/lib/freecad /usr/share/freecad /usr/share/man/man1/freecad.1.gz
flo@mymachine:~$ whereis FreeCAD
FreeCAD: /usr/local/bin/FreeCAD
That's only specific to case-sensitive filesystems, which is not the default for Windows or macOS.
The install name doesn't really matter for macOS as the common way to install it is to drag 'n drop a FreeCAD.app to a folder. It can be named to anything that the user likes.
That's only specific to case-sensitive filesystems, which is not the default for Windows or macOS.
I agree but if you "fix" the binary name everywhere it will break this.
Related:
- https://github.com/FreeCAD/FreeCAD-Bundle/issues/377
What's the verdict here ?
Hi! This issue hasn’t seen activity in a while. If it’s still relevant, please update to the latest FreeCAD weekly build download here to see if the problem is resolved.
If the issue persists, let us know by adding a comment with any updates or details. Otherwise, we’ll close this issue automatically in 14 days to keep our backlog tidy. Feel free to comment anytime to keep it open. Closed issues can always be reopened. Thanks for helping improve FreeCAD!
Access additional FreeCAD resources:
- Forum: https://forum.freecad.org
- Blog: https://blog.freecad.org
- Wiki: https://wiki.freecad.org
Well -- it still is a minor issue.
OS: macOS 15.7.1
Architecture: arm64
Version: 1.1.0dev.14555 (Git shallow)
Build date: 2025/10/21 12:07:13
Build type: Release
Branch: main
Hash: 2096d0bd8603b429fdc0c746c34b3d73c3289fe1
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United States (en_US)
Navigation Style/Orbit Style/Rotation Mode: Touchpad/Rounded Arcball/Window center
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/
Logical DPI/Physical DPI/Pixel Ratio: 72/127.5/2
Installed mods:
* OpenTheme 2025.5.20
* Telemetry 1.0.2
Is there a non-invasive hack to fix this ?
Well, CFBundleName is set to, e.g. FreeCAD_weekly-2025.11.19 in Info.plist in DMG, which seems correct. Some someone would need to track down why macOS is choosing to ignore that.