Cork icon indicating copy to clipboard operation
Cork copied to clipboard

Menu Bar Bug: No Icon in macOS 15.0

Open Luca1991 opened this issue 1 year ago • 2 comments

What were you trying to do?

I wanted Cork to be shown in menu bar and launched without its main window.

What was the problem?

I enabled from Settings menu:

  1. "Show in Menu Bar"
  2. "Open Cork without its main window"

Now when I start Cork I no longer see the main window, nor the icon in the menu bar.

IMPORTANT NOTE: If I only enable "Show in menu bar", the menu bar icon displays correctly.

Error logs

Is this even needed for this bug report?

App Version

1.4.5

App Acquisition

Bought

Final checklist

  • [ ] This report is about the interface, and I included screenshots of the problem

Luca1991 avatar Sep 18 '24 18:09 Luca1991

Thanks for the report, I'll look into it. It might just take a while, because I'm still transitioning the rest of the codebase to the new conventions introduced in macOS 15. Couldn't test them in advance because I only have one Mac, and it's my only work machine!

buresdv avatar Sep 18 '24 19:09 buresdv

Thanks @Luca1991 and @buresdv. Can confirm I have the same issue after upgrading to macOS 15 been bugging me a couple days now and thought it was just me since no-one had reported it yet. 😂

megabubbletea avatar Sep 19 '24 00:09 megabubbletea

I've also got the same issue, but the kicker here is that I'm still on Sonoma

Thisisauser6443 avatar Oct 05 '24 19:10 Thisisauser6443

Same issue here since 3 weeks ... Cork is unusable :-( Any chance this issue will be addressed in the near future?

bigtreiber avatar Oct 12 '24 08:10 bigtreiber

I looked into it and this is definitely an Apple bug. As you can see here, the icon is actually there, but it's invisible: Snímek obrazovky 2024-10-12 v 12 04 59

The problem is here:

func applicationWillFinishLaunching(_: Notification)
{
    if startWithoutWindow
    {
        NSApp.setActivationPolicy(.accessory) <-- here
    }
    else
    {
        NSApp.setActivationPolicy(.regular)
    }
}

Setting the activation policy to .accessory is what breaks the entire process. I have not changed anything in this code since the feature came out almost a year ago, so this is something that Apple did.

I implemented a fix that removes the option to start the app without the main window, which also fixes this issue until Apple fixes it on their end. It's live on main and a new version will come out later today to address this issue for those not self-compiling.

buresdv avatar Oct 12 '24 10:10 buresdv

Hi @buresdv Thanks a lot for the workaround, I hope Apple fixes this bug soon. Should I close this issue now?

Luca1991 avatar Oct 12 '24 18:10 Luca1991

No problem @Luca1991, thank you for your patience. I will close the issue 😊

buresdv avatar Oct 12 '24 20:10 buresdv

The release of the hotfix got a bit delayed because I might have discovered another thing Apple broke - I'm waiting for testers to get back to me

buresdv avatar Oct 13 '24 12:10 buresdv

Implemented in release 1.4.6

buresdv avatar Oct 18 '24 10:10 buresdv

Nice. Good to see the Cork icon back in the menu bar!

megabubbletea avatar Oct 18 '24 10:10 megabubbletea