Ben, Whatever you, Stef and others find helpful is fine by me. My guess would be that having one extra settings file to copy would be a minor hassle compared to providing sources (or symlink to same), a vm, and probably a shell script to make the thing go. Put another way, what do you do to make using "random" images so easy that copying a file is a big pain? I'm missing out on something :) Bill ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] on behalf of Benjamin [benjamin.vanryseghem.pharo@gmail.com] Sent: Saturday, November 19, 2011 1:20 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Startup Preferences The problem is when you download 4-5 images per day, each in a different folder :) Ben On Nov 19, 2011, at 6:02 PM, Schwab,Wilhelm K wrote:
FWIW, I thought there is a way to put a preferences file in the image directory to achieve this?? I read that somewhere, I just never tried it. I typically use an image for a long time (still using 1.1.1 at the moment - it WORKS, ok<g>), so the prompts are perhaps less annoying to me than they would be to frequent image builders.
Bill
________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] on behalf of Stéphane Ducasse [stephane.ducasse@inria.fr] Sent: Saturday, November 19, 2011 11:01 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Startup Preferences
thanks ben
I will wait for feedback before pushing that in the system but indeed, I'm tired to always type my password in all the images. For script loader I did a hack but it would be better to have something nicer like what you did.
Stef
On Nov 19, 2011, at 2:13 PM, Benjamin wrote:
Hi guys,
I did a little project which allow you to save a st script on your HDD in a preference folder (~/.pharo#{version} for unix based machine, not yet defined for windows) and run it each time an image is open. You can also decide for each item if you want it to be run each time or only once.
I use it to set my author name, change the fonts, set some settings, add my password in some repo etc
The code is here:
Gofer new squeaksource: 'StartupPreferences'; package: 'StartupPreferences'; load.
You can have a look at StartupLoader class>>#example and StartupLoader class>>#example2
If you have comments or ideas (by example, what is the path for preferences on windows ? ^^), you're welcome :)
Ben