Run App On Mac Startup Command Line
Are you sure your log in account is an Admin account? Check that in Users & Groups preferences.
How to Open Applications Using Terminal on Mac. Apple's Terminal provides you with a UNIX command line inside the OS X environment. You can enter the open command here to open any application, or to open a file with the application of your. I wanted to have two separate instances of Chrome running, each using its own profile. I wanted to be able to start them from Spotlight, as is my habit for starting Mac apps.In other words, I needed two regular Mac applications, regChrome for normal browsing and altChrome to use the special profile, to be easily started by keying ⌘-space to bring up Spotlight, then 'reg' or 'alt', then Enter.
What are the associated permissions for the program's file in your Applications folder and what permissions are associated with Applications folder itself? They should be, respectively:
- System r/w; Wheel r/only; Everyone r/only
- System r/w; Admin r/w; Everyone r/only
Run App On Mac Startup Command Line Command
Check these and, if needed, change them by selecting the file or folder. Press COMMAND-I to open the Get Info window. The Sharing & Permissions panel is at the bottom. To make a change you first need to click on the little lock icon and authenticate with your admin password.
Jun 21, 2014 1:02 PM
This is a short guide explaining how to run GUI applications from within Docker on Mac. This uses XQuartz to enable to set the DISPLAY
variable within the container.
Install XQuartz
You can install XQuartz using homebrew with brew cask install xquartz
or directly from the website here. At the time of writing, I had 2.7.11
installed on my machine with OSX El Capitan. After installing XQuartz restart your machine.
Install Docker for Mac
Install docker using brew cask install docker
or directly from the website here.
Run XQuartz
Start XQuartz from command line using open -a XQuartz
. In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked:
Host Machine IP
IP=$(ifconfig en0 grep inet awk '$1'inet' {print $2}')
should set the IP
variable as the ip of your local machine. If you’re on wifi you may want to use en1
instead of en0
, check the value of the variable using echo $IP
.
Now add the IP using Xhost with xhost + $IP
. If the xhost command is not found check /usr/X11/bin/xhost
as that might not be in your path.
Running a container
You can now try running firefox in your container with:

Mac Startup Apps Disable
or run octave using: