KeyboardCowboy icon indicating copy to clipboard operation
KeyboardCowboy copied to clipboard

when launching the app a second time the configuration window does not always appear with the menubar

Open bjrmatos opened this issue 9 months ago • 5 comments

after keyboard cowboy starts the first time, there is a difference between opening the app from the menubar vs opening it with a second launch.

after first launch, when launching from the menubar you get to see the keyboard cowboy menubar and can get access to checking the version, the next app launches you make will open the configuration with the menubar in it.

however if after first launch you launch the app, the configuration window appears but with no menubar in it, this will continue to happen for next app launch until you open the configuration from the menubar once.

video: https://share.cleanshot.com/qJ4gLy1h

related to #564

bjrmatos avatar Mar 15 '25 00:03 bjrmatos

Unsure what is going on here but I made a PR to use the same codepath when "reopening" the main window.

https://github.com/zenangst/KeyboardCowboy/pull/607

zenangst avatar Mar 16 '25 11:03 zenangst

seems like the problem is still there with 3.27.3, but what i noticed is that when i launch the app the second time, yes the menu bar is not active, however if i switch to chrome and then switch to cowboy again the menu now appears.

video: https://share.cleanshot.com/7D6VSQhB

bjrmatos avatar Mar 18 '25 18:03 bjrmatos

not sure if it has something to do with raise or activate events on macos

bjrmatos avatar Mar 18 '25 18:03 bjrmatos

Hey @bjrmatos, thanks for following up! I'll reopen the issue and keep digging into it until we get this sorted out.

zenangst avatar Mar 18 '25 18:03 zenangst

This issue is pretty straightforward to reproduce, but I'm not sure what's causing it. When I run it from an Application command, everything works perfectly. However, if I activate the application using Raycast or Finder, it doesn't seem to take over the menu bar.

Gonna continue to investigate this, it has really started to bug me (no pun intended 🤡)

zenangst avatar Apr 01 '25 23:04 zenangst