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/' andsudo 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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -