default file open directory of Kepler 2.0
If I remember correctly, the default directory for 'File-->Open File...' menu item is getting-started directory in Kepler 1.0. In Kepler 2.0 RC 5, the default directory is KeplerData and the getting-started directory is at KeplerData/workflows/module/outreach-2.0.0/demos/getting-started. It might be inconvenient to find this directory, especially for novice.
The discussion about it on IRC is as follows:
<jianwu> but why it has such a name, and it is not the default dir for 'file opening'
<jianwu> If I remember correctly, the file open will go to the getting-started directory by default.
<jianwu> for Keplre 1.0
<jianwu> In Kepler 2.0, this directory will take people a long time to find it.
<jianwu> what do you think, davidwelker?
<davidwelker> I think we could change it
<davidwelker> who knows how to change it quickly?
<davidwelker> I agree this is less convenient. But I am not going to delay the release for it
<davidwelker> Oh wait...
<jianwu> not sure. may chad know the situation of Kepler 1.0 and how to do it?
<davidwelker> I don't know if we should use getting-started anymore as the defult
<davidwelker> what if outreach is patched and goes to outreach-2.0.1
<davidwelker> then you code might break
<davidwelker> that is sort of fragile
<davidwelker> yeah, lets just leave it
<davidwelker> I agree it is a little less convenient
<davidwelker> But it is fine for now
<davidwelker> I want to do a Kepler 2.1 in the not too distant future
<davidwelker> and we can fix stuff like this
<davidwelker> you feel strongly about this =)
<davidwelker> if you feel really strongly, we can move it up
<davidwelker> but the issue is tricky. We have to find where the default is set
<davidwelker> and then that person has to detect not outreach
<davidwelker> but the latest outreach
<davidwelker> and then go from there to demos/getting-started
<jianwu> you can set it acordding to property("outreach.workflowdir")
<davidwelker> I am not sure how exactly to do that in code right off the top of my head
<jianwu> not like outreach-2.0.1 or outreach-2.0.0
<davidwelker> you want to change it?
<davidwelker> I agree
<davidwelker> that is right
<davidwelker> I remember now
<davidwelker> derik made that
<davidwelker> so, if you want to put this out before 2.0, do you think you can hunt down where the default is and change it?
<davidwelker> if you don't have time, it would be fine to do it post 2.0
<davidwelker> I am not even sure that getting-started is where we want it to always open files
<davidwelker> that seems great for checking out demos
<jianwu> I can try. I'll fire a bug firstly about the issue.
<davidwelker> but what about their own work?
<davidwelker> If you are working on your own stuff, you want to open your own workflow
<davidwelker> so, should the default really be getting-started?
<jianwu> it's true.
<jianwu> so it should be configurable?
<davidwelker> I think it should be configurable
<davidwelker> but, I think KeplerData would probably be good for now, actually
<jianwu> ok. good discussion. I'll fire an enhancement bug and see what other guys say about it.
<derik_> just catching up here
<derik_> i think Open dialog opens whereever you last opened from
<davidwelker> it definitely does htat
<davidwelker> cause if I open one workflow from getting-started
<davidwelker> then it opens from there without me having to navigate to it
<derik_> ok...maybe that wasn't relevant to what you guys are discussing :)
<davidwelker> so, where should it start the first time?
<davidwelker> actually derik, it is relevant
<davidwelker> it puts it in context
<derik_> ok, hmm
<davidwelker> we are just talking about where it should open the first time
<davidwelker> so, getting-started is not a bad choice
<jianwu> I agree
<davidwelker> since if you are working on your own stuff, well, it is going to open near there anyway
<davidwelker> I will leave decision to whoever has an opinion. =) I can go either way
<derik_> yeah getting-started would be a good choice for first time open. it would be a bad choice for first time save (not sure if they're one and the same or not)
<davidwelker> good point derik_
<davidwelker> I don't think getting-started would be a good choice for first time save
#2 Updated by Christopher Brooks about 10 years ago
I'm reopening this because there is some confusion about what directory
Kepler opens with File->Open.
The initial discussion was about the demos, but this bug is really about
There is a bug here because the configuration.xml file defines
which does not work.
I'm marking this for consideration for 2.4.0.
BTW, I'm not that happy with the default file open directory
It smacks of the lame way that Windows used to put things in
C:\Documents and Settings\cxh\My Documents
or what ever it was.
The problem here is that if I open a workflow with:
ant run -Dworkflow=/Users/cxh/Downloads/cachedmethod-leak.xml
Then I would expect that File->Open would open a File Browser in the
same directory as the model or in the current directory, not in
some application-specific fold that will only be a good idea for a brand-new
user who does not know how to manage files.
Anyway, back to the bug.
There was this 2/9/2012 email to Kepler-dev
We are trying to change the default open directory for kepler: the only
parameter we found is _alternateDefaultOpenDirectory
in common/configs/ptolemy/configs/kepler/configuration.xml, but changing
it did not have any effect. Are we doing something wrong?
Specify an alternative default directory to open when File|Open is
first called; It is assumed that this directory is inside the $KEPLER
directory called in the ptolemy/gui/Top class.
We now default to DotKeplerManager.getPersistentDir (~/KeplerData) if this
is not set (currently what we want). See KeplerInitializer.
derik 3.23.2010 >
<property name="_alternateDefaultOpenDirectory" value=""
However, setting the value to say "ptolemy" does not cause the $KEPLER/ptolemy
to be the default directory that will be opened,
private static String _persistentUserWorkflowsDirName = "MyWorkflows";
It looks like DotKeplerManager ignores _alternateDefaultOpenDirectory?
To close this bug, either:
1) Fix DotKeplerManager so that it uses _alternateDefaultOpenDirectory
2) Remove all references of _alternateDefaultOpenDirectory.
BTW - perhaps if _alternateDefaultOpenDirectory was an absolute path that
began with a /, then it could be used as the directory in which to