I definitively think that you should have a kind of preference folder, because we want to have some information centralized The cache may be a good example, startup scripts, and probably more stuff :) On Nov 21, 2011, at 1:05 PM, Esteban Lorenzano wrote:
yeah... the repository cache could be defaulted to there too
El 21/11/2011, a las 4:53a.m., Damien Cassou escribió:
Very good idea indeed. I'm just concerned about the directory location:
On Sat, Nov 19, 2011 at 2:13 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
~/.pharo#{version}
what about using the freedesktop.org specification of using $HOME/.config to put configuration files?
Why not :) When I choose the path, I was thinking of my linux distrib, with all the ~/.applicationName folders :) I can easily be changed, and that's also why I sent this mail. To discuss about what is a good name for this folder :)
What about having the #{version} as a subdirectory? That would result in something like:
~/.config/pharo/#{version}/
Also, it could be interesting to load all files in ~/.config/pharo/general/, whatever the version of Pharo. This would be useful to set passwords for example.
The specification is at http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#varia...
I just pushed a new version when scripts are from ~/.config/pharo/#{version}/startup.st or ~/.config/pharo/general/* Like that, you have the local script for each version + the general scripts from the general directory. Tomorrow I will add more examples (and probably a way to set the name of general scripts). Ben
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry