At Fri, 4 Jun 2021 14:15:11 -0700 (PDT), Don Green wrote:
> Sounds like ideally I should begin creating my own pkg(s) that are
> outside a collection path, and link it by specifying a
> current-library-collection-links parameter.
Yes, you should use packages. You normally shouldn't need to set the
`current-library-collection-links` parameter, though. Installing a
package will add to the links that are read via
`current-library-collection-links`
> In the mean time I'd like to add the collection path.
> -----------
> Currently,
> When I open DrRacket and run: (current-library-collection-paths) it returns:
> '(#<path:/home/don/.plt-scheme/4.2.1/collects>
> #<path:/home/don/.racket/8.1/collects> #<path:/home/don/racket/collects/>)
> which is correct and no problems, however
> when I click on a .ss file in the file-manager, the file is opened in
> drracket v.8.1 but
> (current-library-collection-paths) returns only:
> '(#<path:/home/don/.racket/8.1/collects> #<path:/home/don/racket/collects/>)
This is really a question about how your OS deals with environment
variables and programs that you launch through its graphical interface.
It looks like you're on a Unix-like platform; unfortunately, I don't
know how quite things will work there.
> Is there a more convenient method to achieve what I am after by making some
> configuration in racket rather than in my file-manager?
Although it's not the way Racket programmers normally work, there is an
option within DrRacket's GUI:
Open the "Choose Language..." dialog from the "Language" menu, then
select "Show Details". There's a configuration panel roughly in the
middle of the right-hand side for adding collects paths.