Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Launch multiple instances of any given application' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch multiple instances of any given application
Authored by: erikh on Jan 09, '06 04:30:18PM

Sudo never changes the home directory - that is, if you're joe, and your home directory is /Users/joe, this will happen:

$ echo $HOME
/Users/joe
$ sudo bash
# echo $HOME
/Users/joe

Since safari most likely uses some mutation of $HOME to determine where the library path is (which is where your settings are stored), it's most likely that this is the problem.

To solve this:

sudo -H [command]

Which will set the home directory to the user you're targetting (in this case, root).



[ Reply to This | # ]