What is the fundamental difference, for
in a bash-shell and opening it by clicking on it in for example
Finder or the dock?
It seems the environments are slightly different, at least in Mojave, which causes low-level differences in AppKit-resources. In this case I've encountered weird behaviour with NSView (https://developer.apple.com/documentation/appkit/nsview).
Does anyone have information (developer level info) on what the differences are?
I Googled and went through Apple's developer info, but I couldn't find anything meaningful. Appreciate if someone could point me in the right direction.