Menu

#1099 Dock icon and menu bar name in Mac OS

Snapshot
open
nobody
None
5
2017-12-12
2013-09-24
No

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.

Discussion

  • Martin W. Kirst

    Martin W. Kirst - 2015-04-12

    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

     
  • Harry Evans

    Harry Evans - 2017-11-29

    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

    MACOSX_SQUIRREL_PROPS="-Dapple.laf.useScreenMenuBar=true -Dcom.apple.mrj.application.apple.menu.about.name=SQuirreLSQL"
    

    to

    MACOSX_SQUIRREL_PROPS="-Dapple.laf.useScreenMenuBar=true -Dcom.apple.mrj.application.apple.menu.about.name=SQuirreLSQL -Dapple.awt.application.name=SQuirreLSQL"
    

    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.

     
  • Gerd Wagner

    Gerd Wagner - 2017-12-12

    Committed Harry's change to out GIT repository. It will be available in future snapshots and versions.

     

Log in to post a comment.