Bug #91948 mysql-workbench-bin should not be installed to PATH
Submitted: 9 Aug 2018 9:46 Modified: 29 Sep 2018 3:28
Reporter: Jan Tojnar Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.12 OS:Linux
Assigned to: CPU Architecture:Any

[9 Aug 2018 9:46] Jan Tojnar
Description:
When I try to start mysql-workbench-bin, I receive the following error:

To start MySQL Workbench, use /nix/store/f8i78dlbch62cg45qds7dhs88wqiwpiy-mysql-workbench-8.0.12/bin/mysql-workbench instead of /nix/store/f8i78dlbch62cg45qds7dhs88wqiwpiy-mysql-workbench-8.0.12/bin/mysql-workbench-bin

Since the program is not expected to be run manually, it probably should not be in bindir, which is commonly added to PATH.

How to repeat:
Run mysql-workbench-bin.

Suggested fix:
$libdir/mysql-workbench or $datadir/mysql-workbench are much better locations that will not expose the program to PATH.
[9 Aug 2018 10:56] MySQL Verification Team
Thank you for the bug report. Which exactly Linux OS are you using?. Thanks in advance.
[9 Aug 2018 11:00] Jan Tojnar
I use NixOS (I am currently updating mysql-workbench package: https://github.com/NixOS/nixpkgs/pull/44689) but this issue applies to any distribution. For example, here is Arch Linux package that also has *-bin programs in $bindir: https://www.archlinux.org/packages/community/x86_64/mysql-workbench/
[9 Aug 2018 11:28] MySQL Verification Team
Thank you for the feedback. Sorry but currently that platform isn't supported.

https://www.mysql.com/support/supportedplatforms/workbench.html
[9 Aug 2018 11:46] Jan Tojnar
Well, the issue is not specific to any Linux distribution – it occurs in the official Ubuntu package as well – but rather the CMakeLists.txt in the source code.
[9 Aug 2018 11:56] Jan Tojnar
Apparently, this was already fixed in MySQL Workbench 5.2.43 (see https://bugs.mysql.com/bug.php?id=66322) but it regressed somehow.
[29 Sep 2018 3:28] Jan Tojnar
Can this be re-opened, since it is a regression?