Change application's execution parameter?

Discussion in 'MacBook Pro' started by altjx, Aug 18, 2013.

  1. altjx macrumors member

    Joined:
    May 12, 2010
    #1
    I'd like to always start Google Chrome in Incognito mode. In Ubuntu, I'd just modify the Chrome shortcut and append "--incognito" at the end. With Windows, I'd just append "-incognito" to the shortcut, and both of these solutions worked for these OSes...

    Can someone tell me how to do this for the dock icon in Mountain Lion?
     
  2. B... macrumors 68000

    B...

    Joined:
    Mar 7, 2013
  3. altjx thread starter macrumors member

    Joined:
    May 12, 2010
    #3
    Anything within Chrome's preferences will only take place after Chrome starts. The problem is that it's going to start in the regular mode, and not Incognito. There's no way, from the preferences at least, to make Chrome start up in Incognito.

    I think modifying the shortcut is absolutely necessary. Thanks for replying though.
     
  4. priitv8 macrumors 68020

    Joined:
    Jan 13, 2011
    Location:
    Estonia
    #4
    I'd look into either
    1) achieving the same with an environment variable
    2) if that fails and you're absolutely sure Chrome for OS X takes same command-line parameter, then why not just create a small shell script that launches the program with the parameter?
     
  5. altjx thread starter macrumors member

    Joined:
    May 12, 2010
    #5
    Yep, I actually got this working doing the same thing you mentioned in the second step. Thanks for responding! :)
     

Share This Page