Thanks igor.
So this is more complex I thought :)

Stef

On Jul 5, 2011, at 10:53 AM, Igor Stasenko wrote:

> 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

what colin did was to do parent parent parent parent :)

Stef



> 
> 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 <[email protected]> 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 <[email protected]> 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.
> 


Reply via email to