Discussion:
[darktable-user] dt & arguments from command line in Mac OS X ?
J Albrecht
2016-11-28 17:51:46 UTC
Permalink
I frequently see many suggestions of starting the program using the command line if problems are encountered. Whereas I can invoke the program thus when working in Mac OS X (ie “open /Applications/darktable.app” ), I have no success when trying to do this with additional arguments such as, for example: “ open /Applications/darktable.app -d control | egrep “dpi|ppd” “

Could somebody please provide some guidance?
August Schwerdfeger
2016-11-28 18:06:46 UTC
Permalink
I have been able to do this by executing the actual binary within the
application package:

% /Applications/darktable.app/Contents/MacOS/darktable [parameters]

--
August Schwerdfeger
Post by J Albrecht
I frequently see many suggestions of starting the program using the
command line if problems are encountered. Whereas I can invoke the program
thus when working in Mac OS X (ie “open /Applications/darktable.app” ), I
have no success when trying to do this with additional arguments such as,
for example: “ open /Applications/darktable.app -d control |
egrep “dpi|ppd” “
Could somebody please provide some guidance?
J Albrecht
2016-11-28 18:17:15 UTC
Permalink
Thank-you August. I’ve just tried this:

open /Applications/darktable.app/Contents/MacOS/darktable -d control | egrep "dpi|ppd"

but was greeted with:

open: invalid option -- d

It appears that the not all Unix options carry-over to Mac OS X. Hence, I’m still unable to run the app from the Command Line with and additional arguments
Post by August Schwerdfeger
% /Applications/darktable.app/Contents/MacOS/darktable
August Schwerdfeger
2016-11-28 18:23:46 UTC
Permalink
Try it without the 'open' at the beginning of the command -- you should be
able to execute that binary directly.

--
August Schwerdfeger
Post by J Albrecht
open /Applications/darktable.app/Contents/MacOS/darktable -d control | egrep "dpi|ppd"
open: invalid option -- d
It appears that the not all Unix options carry-over to Mac OS X. Hence, I’m
still unable to run the app from the Command Line with and additional
arguments
% /Applications/darktable.app/Contents/MacOS/darktable
J Albrecht
2016-11-28 18:27:51 UTC
Permalink
It worked! Thank-you very much, August.
Try it without the 'open' at the beginning of the command -- you should be able to execute that binary directly.
--
August Schwerdfeger
open /Applications/darktable.app/Contents/MacOS/darktable -d control | egrep "dpi|ppd"
open: invalid option -- d
It appears that the not all Unix options carry-over to Mac OS X. Hence, I’m still unable to run the app from the Command Line with and additional arguments
Post by August Schwerdfeger
% /Applications/darktable.app/Contents/MacOS/darktable
Loading...