Izaak,

HDFView uses what is from System.getProperty("user.dir") for "Current Working Directory" . It seems that System.getProperty("user.dir") gives the directory where the program starts. That is the reason that the location is always the same. The best way is to enter your own
path where you want HDFView to start to open files.

Two tentative solutions
1) No change for the current behavior, but using "Program Directory" instead of "Current
     Working Directory" for less confusing or
2) Using the directory of the latest open file in HDFView. If there is no open file, use what is
     from System.getProperty("user.dir")

We definitely  would like to have your comments and suggestions.

Thanks
--pc


On 10/7/2011 9:15 AM, Izaak Beekman wrote:
Hi,
If I go to Tools -> User Options and check the "Current Working Directory" check box in the Default Working Directory section under the General Setting tab in hdfview 2.7 the change is not sticky and never gets made. Instead, when I open up hdfview the next time, the box is unchecked and the Default Working Directory is reset to the install location. I examined the ~/.hdfview file and work.dir field is reset to the install directory as soon as hdfview is closed. I see no fields in the .hdfview file pertaining to "Current Working Directory."

Izaak Beekman
===================================
(301)244-9367
UMD-CP Visiting Graduate Student
Aerospace Engineering
[email protected] <mailto:[email protected]>
[email protected] <mailto:[email protected]>


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to