[squeak-dev] Sources file locations (was: User config directories)
tim at rowledge.org
Mon Jan 3 18:11:21 UTC 2022
> On 2022-01-03, at 9:57 AM, Tobias Pape <Das.Linux at gmx.de> wrote:
>> Primitive. Query for a common file location.
>> location: String describing the common file location.
>> Return value: The path to the designated location.
>> Known locations:
>> 'home' - the user's home directory
>> 'desktop' - the user's desktop directory
>> 'temp' - the temp directory to use
>> 'preferences' - the place to store (per user) app preferences
>> 'applications' - the directory for installing applications
>> 'fonts' - the directory to install fonts in the system
>> 'documents' - the users documents folder
>> 'music' - the users default location for music
>> 'pictures' - the users default location for pictures
>> 'videos' - the users default location for videos
> These are very user-oriented, which is fine.
> Maybe we can augment it down the path with some system locations :)
The only one I don't see is the location for the sources file(s), which isn't surprising since I doubt VirtEnd uses them.
Suggestion - make the prim only return any platform specific directory or nil; the method could then supply whatever defaults seem sensible (ie pretty much what we assume now). Thus a platform without the prim would behave as now.
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: CCP: Clear Core and Proceed
More information about the Squeak-dev