Darktable cannot be run from the command line [OSX]
When I try to start Darktable from the command line to get some debug information, I get the following output and Darktable does not start:
imac27:MacOS vertex$ ./darktable 2014-09-01 20:49:02.755 defaults[700:507] The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does not exist ./darktable: line 83: test: argument expected ./darktable: line 174: /Applications/darktable.app/Contents/MacOS/Contents/MacOS/darktable-bin: No such file or directory ./darktable: line 174: exec: /Applications/darktable.app/Contents/MacOS/Contents/MacOS/darktable-bin: cannot execute: No such file or directory
On my iMac runs OSX 10.9.4 with XQuartz v2.7.7.
It is obvious that the directory path is not correct - "/Contents/MacOS" appears twice.
If I start Darktable from the application menu it runs without any issues.