Thanks. You're right. This has got to do with how apps get launched in mac. To get this to work you can fiddle with either launchd.conf or launchctl (man launchctl). I added launchctl to the end of my .zshrc file and it now works. This is the line I added:
launchctl setenv PATH $PATH and the Jqt.app now gets the PATH variable (the one I was primarily interested in) correctly. On Wed, Jul 9, 2014 at 9:04 PM, bill lam <[email protected]> wrote: > Since jqt and jconsole use the same j engine so I think this is un-related > to J itself. > On Jul 10, 2014 8:04 AM, "Vijay Lulla" <[email protected]> wrote: > > > Hi all, > > On my macbook pro I get this strange behavior: > > > > In a Jqt.app (either from finder or icon docked in my dock bar): > > #<;._1 ':', getenv 'PATH' NB. yields 4 > > > > In jconsole (from terminal): > > #<;._1 ':', getenv 'PATH' NB. yields 18 > > > > I.e. Jqt.app doesn't get the env variables (slightly modified for my > > convenience) from my account. Why? Or more pertinently how do I get > Jqt.app > > to read the correct env variables? Am I doing something wrong? > > > > JVERSION yields: > > > > VERSION > > > > Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29 > > > > Library: 8.02.10 > > > > Qt IDE: 1.1.3/5.3.0 > > > > Platform: Darwin 64 > > > > Installer: J802 install > > > > InstallPath: /users/vijay/code/apl/j64-802 > > > > > > Thanks, > > > > Vijay > > PS: Pardon me if this isn't the right forum to post this question. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
