nrlquaker / winbox-mac

MikroTik Winbox bundled into macOS app with Wine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

won't start on macOS 12.6.8

ssstain opened this issue · comments

  • macOS version: 12.6.8
  • macOS language English
  • Winbox-mac version 3.39

After the upgrade to macOS 12.6.8 the winbox-mac won't start anymore.
The window hangs with input fields inaccessible.

macOS Version: 13.5.1
macOS Language: English
Winbox-mac version: 3.39

Unfortunately, I can replicate this issue. I attempted to remedy this by deleting the WINE prefix stored at ~/Library/Application Support/com.mikrotik.winbox, but that does not seem to have remedied the issue. When launched normally, the AppIcon bounces in the tray consistently, even after the UI appears, leading me to believe the app never registers a "fully launched" state.

I did however discover a workaround - If one right-clicks on the launcher icon and closes it, then waits, Winbox will launch, and allow for user input. The AppIcon from the bundle disappears, and the icon from the Winbox executable then shows up in the tray with the app title "wine64-preloader". Alternatively, once can edit the launcher script at /Applications/Winbox-mac.app/Contents/MacOS/winbox-mac and change line 19 to: "$BUNDLERESOURCEPATH/wine/bin/wine64" "winbox64.exe" "$@" &, which effectively performs the same action by backgrounding the WINE thread. Not the greatest user experience, as we see an AppIcon appear in the Dock and then disappear, leading the user to think the app crashed, but still better than having to perform manual steps in the interim.

reinstalled the inbox and it solved the issue
I should have tried that first.
Closing.
@belthesar thank you for the hint. Next time it hangs, I will try yours.

I can confirm this fixes the broken mouse/keyboard input inside the MDI container in Ventura. I applied @belthesar's fix and it began to work as usual.

Thanks for creating this!

I would encourage reopening this issue, as while I have provided a workaround, I would not consider this a "fix". Something about the upgrade between versions has introduced undesirable behavior. Unless something has fundamentally changed about Winbox and the WINE wrapper that this is the best method of addressing this behavior change, addressing the root cause for this behavior is likely the better choice. Leaving the issue open surfaces visibility to the workaround in the interim, and encourages the maintainer to delve further.

11.6.8 Mac Big Sur and current version

When i open winbox it starts jumping on the Dock but closes itself, tried solution indicated here but it doesnt work, used to work with old version

You need to delete the application completely (~/Library/Application Support/com.mikrotik.winbox)and reload the device list and everything works as it should :)

theres no com.mikrotik.winbox folder inside Application Support

Out of curiosity, for those of you having issues launching Winbox-mac, are you on Apple Silicon hardware, and have you installed bash via Homebrew? I've identified an issue where the launcher expects to use bash, but if bash is installed via Homebrew, bash will only install binaries for the platform architecture. Turns out we don't need bash with the launcher script, so I'm working on a release that gets around this.

Also, I've noted that there's a difference in launch behavior when Winbox-mac is launched via Spotlight vs. Launched via Finder or a Dock shortcut. When launched via Spotlight, this seems to cause the infinite bouncing Dock icon issue, which also prevents input in the window. Looking into this one more.