Here what they returning (on macs) TTT class>>getSecuredir <primitive: 'primitiveGetSecureUserDirectory' module: 'SecurityPlugin'> self primitiveFailed. TTT getSecuredir '/foobar/tooBar/forSqueak/bogus/' TTT class>>primitiveGetUntrustedUserDirectory <primitive: 'primitiveGetUntrustedUserDirectory' module: 'SecurityPlugin'> self primitiveFailed. TTT primitiveGetUntrustedUserDirectory '/Users/sig/Library/Preferences/Croquet/Internet/Untrusted' as you can see none of them could be called 'home', which in my case should be /Users/sig On unix system(s), this is easy - one could just use HOME environment variable. On windows.. its different. i'm not sure if there are any prims which allowing you to access environment vars. I remember i made an example for FFI how to read them.. but that means it will work only using FFI. On 5 July 2011 10:47, Igor Stasenko <siguctua@gmail.com> wrote:
There are two primitives defined in SecurityPlugin:
primitiveGetSecureUserDirectory primitiveGetUntrustedUserDirectory
i'm not sure what they return, but this is all it has.
On 4 July 2011 18:01, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
do yo have an idea of the primitive?
Stef
FS uses SecurityManager as a fix point to identify home. Now we do not have Security manager so I'm wondering if we should not remove home/document/desktop from FS, else any ideas how we can replace the entry point a securityManager?
I think you can place a primitives which providing these paths somewhere in FS.
Stef
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.