Version and Platform (required):
- Binary Ninja Version: 6.0.10495
- Edition: Ultimate
- OS: MacOS
- OS Version: Beta 27.0 26A5406E
- CPU Architecture: M3 Pro
Bug Description:
During certain operations, particularly when the UI is open and binary ninja is opened from the command line, window management seems to break. For this specific issue, it's spawning a new window instead of using the existing one when launching a .bndb. However, there may be a wider issue, as I've had bugs where the window won't open at all from CLI but be selected by the toolbar, and will only appear after clicking the icon (un-reproducible for me, which is why I haven't made it a separate issue).
Steps To Reproduce:
- Close all running instances of Binary Ninja
- Run binaryninja from the CLI to open:
- Windows: C:\windows\notepad.exe
- Linux: /bin/ls
- macOS: /bin/ls (select an object, arm64e or x86_64)
- Ensure it opens the file correctly, with no error
- Make note of the entry point function, then save a BNDB
- Open a new tab
- Run binaryninja from a new CLI with the path to the BDNB, ensure you get a confirmation prompt in the running instance, click Yes
- Observe that it opens a new window instead of activating the tab with the BNDB in it
Although inconsistently, this can cause a new window to show up.
Expected Behavior:
It should open the tab that has the file open already.
Screenshots/Video Recording:

Binary:
/bin/ls on macOS
Version and Platform (required):
Bug Description:
During certain operations, particularly when the UI is open and binary ninja is opened from the command line, window management seems to break. For this specific issue, it's spawning a new window instead of using the existing one when launching a .bndb. However, there may be a wider issue, as I've had bugs where the window won't open at all from CLI but be selected by the toolbar, and will only appear after clicking the icon (un-reproducible for me, which is why I haven't made it a separate issue).
Steps To Reproduce:
Although inconsistently, this can cause a new window to show up.
Expected Behavior:
It should open the tab that has the file open already.
Screenshots/Video Recording:

Binary:
/bin/ls on macOS