jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: FW: organizing extension modes


On 28.04.05, SANGOI DINO wrote:
> > From: G. Milde
 
> > My suggestion would be to expand the set to 3 Variables
> > 
> >   Jed_Site_Library   (default "JED_ROOT/site-lib")
> >   Jed_Local_Library  (default "/usr/local/share/jed/lib")
> >   Jed_Home_Library   (default "~/.jed/lib")
...

> > I suppose on Windows, the defaults should be somewhat different

> For recent windows, something like:
> 
> path_concat(path_concat(path_concat(path_concat(getenv("ALLUSERSPROFILE"),
> path_basename(getenv("APPDATA"))), "Jedsoft"), "JED"), "lib")
> 
> (uff)
> 
> Should work for Jed_Local_Library. ALLUSERSPROFILE and APPDATA are set both
> in Windows 2000 and 2003, if not set we can leave this variable empty.

> Jed_Site_Library set as "JED_ROOT/site-lib" is ok.

Thanks Dino for your Windows testing and advice. I put a (slightly
modified) version of your suggestions into version 0.9.5 of home-lib.sl
(on Jedmodes). (We need testing whether getenv(...) results in NULL
before using it in path_* commands. Also, as we are in an #if MSWINDOWS
clause, the last 3 parts could be hard-concatenated to
"Jedsoft\JED\lib".)

The new version just commited to the Jedmodes CVS and should be available
via http://jedmodes.sf.net/mode/home-lib/ within some hours.

Hints, suggestions and test-reports welcome.

Günter

-- 
G.Milde web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]