In version 3.5 for Mac OS, the standard Java logo is used in the dock, and the application’s name in the menu bar is “Main”. To fix it, add -Xdock:icon=../acorn.icns -Xdock:name=Squirrel to MACOSX_SQUIRREL_PROPS in squirrel-sql.sh.
Alternatively, to fix the application menu name change the startup script: /Applications/SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh
to redefine MACOSX_SQUIRREL_PROPS from
Leave com.apple.mrj.application.apple.menu.about.name for old macs (doesn't work on new macs) and add apple.awt.application.name for new macs (old macs ignore this value).
This fixes the name in the dock, the menu bar, and the CMD-tab menu. This does not address the icon, but the values in /Applications/SQuirreLSQL.app/Contents/Info.plist do so for me. Of course, all of this only works for the .app version, not the jar run directly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As an alternative, you may merge this pull request below, which solves this issue programatically.
https://sourceforge.net/p/squirrel-sql/git/merge-requests/16/
Regards
Martin
Just as a hint: this feature request relates to
https://sourceforge.net/p/squirrel-sql/feature-requests/404/
Alternatively, to fix the application menu name change the startup script:
/Applications/SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh
to redefine MACOSX_SQUIRREL_PROPS from
to
Leave
com.apple.mrj.application.apple.menu.about.name
for old macs (doesn't work on new macs) and addapple.awt.application.name
for new macs (old macs ignore this value).This fixes the name in the dock, the menu bar, and the CMD-tab menu. This does not address the icon, but the values in
/Applications/SQuirreLSQL.app/Contents/Info.plist
do so for me. Of course, all of this only works for the.app
version, not the jar run directly.Committed Harry's change to out GIT repository. It will be available in future snapshots and versions.