I recently installed leksah on my Mac (once directly, once via brew cask).
When I try to open it in Finder, Dock or use spotlight the window flashes open for a second and then closes immediately.
When I open it via terminal using
open -a Leksah or
open ~/Applications/Leksah it opens just fine.
Other users have experienced the same issue with other apps and other OSX versions as well. Is there a difference in behavior when opening an application using any of these methods? How can one debug what's going on?