osx - How to open GUI app with different $HOME path in Mac OS X -
i'm wondering how might go opening mac os x application using different $home path.
specifically, i'm trying start browser , have different sessions, don't interfere each other.
i tried home=/users/daniel/test open /applications/firefox.app/
via bash, didn't work (opened using existing session ~/library). man open
didn't offer help.
i tried creating different user , did sudo su mickey -c 'open /applications/firefox.app/' and
sudo su mickey -lc 'open /applications/firefox.app/', hoping @ least launch app different user (works in linux), again no donut, , man su
doesn't here either. still opened using ~/library stuff.
i know there's funkiness environment variables , bash vs. wm, , i'm guessing need plist-y magic, i'm not sure how go it.
any ideas?
tia, daniel :)
you can try using launchctl
. see daemons , services programming guide. need create plist one-time job. there username key (see launchd.plist man).
Comments
Post a Comment