ID 352809 - [OSX] Nuke shortcuts launched via the terminal through an environment variable abort/crash

Follow

Problem summary
[OSX] Nuke shortcuts launched via the terminal through an environment variable abort/crash

Customer reported version
nuke.11.1v3

Customer reported platform
n_a_mac

Steps to reproduce
1) Open a terminal window.
2) Type the following command: nano ~/.bash_profile
3) Navigate to the bottom of the document. Add the following command, substituting the values for your environment/Nuke version:
export PATH="/Applications/Nuke12.#v#/NukeX12.#v#.app/:$PATH"
4) Press "Ctrl + X" to exit nano. When prompted, press "y" then press enter.
5) Press "CMD + Q" to quit terminal.
6) Open a new terminal window. Enter the following command and verify that the path added in step 3 is listed in the output:
echo $PATH
7) If the path is there, enter the following command (substituting the values for your Nuke version):
Nuke12.#v#
Result: Nuke crashes. This error is printed to the console:

This application failed to start because it could not find or load the Qt platform plugin "cocoa" in "".

 

Reinstalling the application may fix this problem.

Abort trap: 6


Workaround
Set an alias to the direct file. For example, instead of the command used in step 3 use:
alias NukeX11.#v#="/Applications/Nuke11.#v#/NukeX11.#v#.app/NukeX11.#v#"

Reproduced by Support in:
Nuke 12.2v3 - OSX 10.13.6
11.1v4 - OSX 10.13.4
11.1v1 - OSX 10.13.4
11.0v4 - OSX 10.13.4
11.0v1 - OSX 10.13.4

Unable to reproduce bug in:
10.5v7 - OSX 10.13.4

Earliest version tested
10.5v7 - OSX 10.13.4 - This issue no longer appears in this version and has regressed.

Expected behaviour
Application should launch as normal.

Actual behaviour
Application errors and exits.

    We're sorry to hear that

    Please tell us why