On 2022-01-03, at 9:57 AM, Tobias Pape Das.Linux@gmx.de wrote:
Primitive. Query for a common file location. Arguments: 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
Neat! 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 -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: CCP: Clear Core and Proceed