Bug #98282 MySQL Workbench context menu launch only opens single .sql file
Submitted: 18 Jan 2020 14:12 Modified: 19 Jan 2020 11:11
Reporter: Magnus Oxlund Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.18 OS:MacOS (macOS 10.15.x Catalina x86_64)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[18 Jan 2020 14:12] Magnus Oxlund
Description:
If MySQL Workbench is launched from Finder's context menu by highlighting and right-clicking on a group of .sql files, only a single .sql file will be opened in MySQL Workbench once it's launched. 

All highlighted files are opened as expected via the context menu subsequent to launching MySQL Workbench.

How to repeat:
1) Make sure MySQL Workbench is not running.
2) Highlight a group of .sql files in Finder.
3) Right-click on any one of the files, and select "Open with…" > "MySQL Workbench".
[18 Jan 2020 18:16] MySQL Verification Team
Thank you for the bug report. WorkBench opens one sql file and, multiple WorkBench instances were disabled by design so to open one file is the behavior designed. So not a bug.
[19 Jan 2020 11:07] Magnus Oxlund
Open batch PRE launch

Attachment: Open batch PRE launch.png (image/png, text), 184.99 KiB.

[19 Jan 2020 11:07] Magnus Oxlund
Open batch POST launch

Attachment: Open batch POST launch.png (image/png, text), 200.29 KiB.

[19 Jan 2020 11:11] Magnus Oxlund
Thanks for the response, Miguel.

I'm not sure I understand exactly you mean by multiple instances. I'm not expecting multiple windows to open, just multiple tabs, exactly as when multiple files are opened when MySQL Workbench is already running.

I've uploaded screenshots that illustrate the difference and the launch method.
[19 Jan 2020 16:06] MySQL Verification Team
Sorry if I didn't explained well, WorkBench is launched to open 1 file so it tries to run another WorkBench instance again to open the second file which isn't allowed because WorkBench is designed on this way. You could notice this behavior with the Management Studio of the SQL Server as well.