Re: [opendx-users] Configuring OpenDX on a Mac
I should have checked more thoroughly. It's only the DX main menu that fails to recognize the directory setting. Run visual program and Edit visual program both go to the root (curiously, with a double slash at the start. I.e., I end up at // not /). However, the VPE dialogs (open, load macros, file interactors, etc.) all start at the desired directory. I tried setting DXHOST to unix and tried adding -host unix to DXARGS (and I am logging out/in each time), but with the same behavior - the launcher window goes away, but no dx. Just curious - what is the ~/.dx-ad config file? Is it safe/recommended to add parameter settings there? As I said, setting DX*host there does work. Thanks again for the help. Joel David Thompson wrote: I tested the DXARGS specifically because this was the most interesting and it worked with no problems (changed my directory to my Desktop). Can you check it again? Can you check it on the command line and see if it works? I guess, I should also know what you mean by it doesn't work (mine made all FileSelectors and Open/Save dialogs default to the Desktop folder I set it to.) Remember you have to log out and log in each time you make a change to the environment.plist file (its only read once at log in time.) Can you set the -host localhost okay via the command line? You could also try to set DXHOST=unix which will just assume a localhost but not even try to look up the machine name. David === Joel Richardson, Ph.D. Phone: (207) 288-6435 The Jackson Laboratory Fax: (207) 288-6132 600 Main Street URL: www.informatics.jax.org Bar Harbor, Maine 04609 ===
Re: [opendx-users] Configuring OpenDX on a Mac
Problem solved...mostly. I stumbled across a config file in my home directory. The file is named .dx-ad, and is not documented anywhere that I've been able to find. The VPE uses it to save things like which module categories are expanded. The settings in this file take effect whether DX is started from the command line or from the launcher. By looking at dx source code, and playing around a bit, I was able to come up with the following. (This may not be the most robust way to go about this, but it got me over the hurdle.) 1. To achieve the same effect as setting DXMACROS, you can define the variable DX*macros. 2. To achieve the same effect as setting DXMDF, you can define the variable DX*userModuleDescriptionFile. 3. I did not see any way to achieve the same effect as setting DXMODULES. (DX*modules doesn't do anything.) As a workaround, the MDF file can give the complete path to the loadable file. 4. Looking at the dx source code, it seems that setting the variable DX*directory should set the working directory, but it doesn't. Whenever I launch dx from the icon, the working directory is always root. Cheers, Joel Joel Richardson wrote: Hey DXers, I am running the Vis Inc. distribution of OpenDX 4.3.2 on a Powerbook G4 running OSX 10.3.9. I've got a bunch of macros and runtime loadable modules that I'd like to have available every time I start dx. Similarly, I'd like the working directory to be set to a particular location. The standard mechanism (setting env variables) works fine if I invoke dx from the command line. But if I launch it via the application icon or open a .net file, my settings have no effect. The variables are set in my .bashrc file. I'm able to make the macros visible by placing them under ${HOME}/Library/Application Support/OpenDX/macros as described in the distribution notes. But I cannot make my loadables visible, and the working directory is always /. Thanks in advance, Joel -- === Joel Richardson, Ph.D. Phone: (207) 288-6435 The Jackson Laboratory Fax: (207) 288-6132 600 Main Street URL: www.informatics.jax.org Bar Harbor, Maine 04609 ===
Re: [opendx-users] Configuring OpenDX on a Mac
Joel, You can set the following environment variables to override things: DXMDF=path2mdf/file.mdf DXMACROS=path2macrosdirectory DXARGS=-directory /workingpath .bashrc is not consulted from an app that is not started from a terminal. You can follow the thread on Apple's X11 mailing list for more information on environment variables and apps, see http://lists.apple.com/archives/x11-users/2004/Dec/msg00085.html Your best bet would be to place these variables in the ~/.MacOSX/environment.plist as mentioned here http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/EnvironmentVars.html By the way, you will need to logoff and login for environment.plist to take effect. A technote from Apple talks about creating this file http://developer.apple.com/qa/qa2001/qa1067.html. I just tried it out to make sure it works and it does as I state. I will make sure to add this to the documentation for the next release. It really is a nice feature. If you have the Property List Editor from the developer tools, it can help to make sure the syntax is correct. David Hey DXers, I am running the Vis Inc. distribution of OpenDX 4.3.2 on a Powerbook G4 running OSX 10.3.9. I've got a bunch of macros and runtime loadable modules that I'd like to have available every time I start dx. Similarly, I'd like the working directory to be set to a particular location. The standard mechanism (setting env variables) works fine if I invoke dx from the command line. But if I launch it via the application icon or open a .net file, my settings have no effect. The variables are set in my .bashrc file. I'm able to make the macros visible by placing them under ${HOME}/Library/Application Support/OpenDX/macros as described in the distribution notes. But I cannot make my loadables visible, and the working directory is always /. Thanks in advance, Joel -- === Joel Richardson, Ph.D. Phone: (207) 288-6435 The Jackson Laboratory Fax: (207) 288-6132 600 Main Street URL: www.informatics.jax.org Bar Harbor, Maine 04609 === -- . David L. Thompson Visualization and Imagery Solutions, Inc. mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472
Re: [opendx-users] Configuring OpenDX on a Mac
David, Thanks - this works as advertised ... mostly! 1. Setting DXMDF, DXMODULES, and DXMACROS in ~/.MacOSX/environment.plist works just fine. 2. Setting DXARGS to change the working directory does not work - I still end up at the root dir. 3. Also, I'd like to set host to localhost. (Otherwise ssh complains, and I have to open a connection manually from VPE.) If I set DXHOST (or add -host localhost to DXARGS) in environment.plist, dx fails to launch. I see the launcher progress bar, but it just goes away, and there's no dx main menu. I *can* set DX*host in ~/.dx-ad, however. Thanks, Joel David Thompson wrote: Joel, You can set the following environment variables to override things: DXMDF=path2mdf/file.mdf DXMACROS=path2macrosdirectory DXARGS=-directory /workingpath .bashrc is not consulted from an app that is not started from a terminal. You can follow the thread on Apple's X11 mailing list for more information on environment variables and apps, see http://lists.apple.com/archives/x11-users/2004/Dec/msg00085.html Your best bet would be to place these variables in the ~/.MacOSX/environment.plist as mentioned here http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/EnvironmentVars.html By the way, you will need to logoff and login for environment.plist to take effect. A technote from Apple talks about creating this file http://developer.apple.com/qa/qa2001/qa1067.html. I just tried it out to make sure it works and it does as I state. I will make sure to add this to the documentation for the next release. It really is a nice feature. If you have the Property List Editor from the developer tools, it can help to make sure the syntax is correct. David Hey DXers, I am running the Vis Inc. distribution of OpenDX 4.3.2 on a Powerbook G4 running OSX 10.3.9. I've got a bunch of macros and runtime loadable modules that I'd like to have available every time I start dx. Similarly, I'd like the working directory to be set to a particular location. The standard mechanism (setting env variables) works fine if I invoke dx from the command line. But if I launch it via the application icon or open a .net file, my settings have no effect. The variables are set in my .bashrc file. I'm able to make the macros visible by placing them under ${HOME}/Library/Application Support/OpenDX/macros as described in the distribution notes. But I cannot make my loadables visible, and the working directory is always /. Thanks in advance, Joel -- === Joel Richardson, Ph.D. Phone: (207) 288-6435 The Jackson Laboratory Fax: (207) 288-6132 600 Main Street URL: www.informatics.jax.org Bar Harbor, Maine 04609 === -- === Joel Richardson, Ph.D. Phone: (207) 288-6435 The Jackson Laboratory Fax: (207) 288-6132 600 Main Street URL: www.informatics.jax.org Bar Harbor, Maine 04609 ===
Re: [opendx-users] Configuring OpenDX on a Mac
I tested the DXARGS specifically because this was the most interesting and it worked with no problems (changed my directory to my Desktop). Can you check it again? Can you check it on the command line and see if it works? I guess, I should also know what you mean by it doesn't work (mine made all FileSelectors and Open/Save dialogs default to the Desktop folder I set it to.) Remember you have to log out and log in each time you make a change to the environment.plist file (its only read once at log in time.) Can you set the -host localhost okay via the command line? You could also try to set DXHOST=unix which will just assume a localhost but not even try to look up the machine name. David David, Thanks - this works as advertised ... mostly! 1. Setting DXMDF, DXMODULES, and DXMACROS in ~/.MacOSX/environment.plist works just fine. 2. Setting DXARGS to change the working directory does not work - I still end up at the root dir. 3. Also, I'd like to set host to localhost. (Otherwise ssh complains, and I have to open a connection manually from VPE.) If I set DXHOST (or add -host localhost to DXARGS) in environment.plist, dx fails to launch. I see the launcher progress bar, but it just goes away, and there's no dx main menu. I *can* set DX*host in ~/.dx-ad, however. Thanks, Joel -- . David L. Thompson Visualization and Imagery Solutions, Inc. mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472