I've noticed though that
sudo ln -s /Applications/Geany.app/Contents/MacOS/geany /usr/local/bin/geany
doesn't work and Geany won't load the shared library. I'll have a look at the problem for the next release so I'll keep this report open for now.
Hmm, I didn't find any easy fix - when the main binary is symlinked, NSBundle returns the location of the symlink itself as the bundle path and Geany depends on this path in
https://github.com/geany/geany/blob/915cf6e8d0b63482e23564c68b2f478cc3ff9cb2...
where gtkosx_application_get_resource_path() uses the path obtained by NSBundle.
Since there is a way to put Geany into PATH, I'll close this issue.