[Pharo-project] How do I get the user directory?
Damien Pollet wrote:
Besides I have no idea what an untrusted user directory is. Perhaps a Windowsish concept ?
Read the class comment of SecurityPlugin in the following changeset and you will be find answers: [1] Looks like "My Squeak" is hard coded, see sqUnixSecurity.c [2] for Unix. Have fun Torsten [1] http://ftp.squeak.org/updates/3527VMSecurity-ar.cs [2] http://tracker.squeakland.org/secure/attachment/13397/sqUnixSecurity.c -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Hello, Torsten Bergmann wrote:
Damien Pollet wrote:
Besides I have no idea what an untrusted user directory is. Perhaps a Windowsish concept ? Read the class comment of SecurityPlugin in the following changeset and you will be find answers: [1]
I don't understand why: [Windows] untrusted user directory: "C:\My Squeak\username\" [Unix] untrusted user directory: "~username/squeak/" are untrusted, especialy for unix. On windows, it's uggly to have a dir just in "C:" ! It should be "My Documents/username"... I don't understant also why home dir in Pharo is not: [Windows] "My documents" ("Mes Documents" in french) that is generaly in "C:\Documents and Settings\username" [Unix]"~username" that is generaly in "/home/username" a+ Vicnet -- View this message in context: http://n2.nabble.com/How-do-I-get-the-user-directory-tp3574028p3579642.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Fri, Sep 4, 2009 at 14:36, Vicnet<oselev@yahoo.fr> wrote:
I don't understand why: [Windows] Â untrusted user directory: "C:\My Squeak\username\" [Unix] untrusted user directory: "~username/squeak/" are untrusted, especialy for unix. On windows, it's uggly to have a dir just in "C:" ! It should be "My Documents/username"...
So apparently this (un)trusted distinction is because that's code specific to the web browser plugin, ie. it only makes sense in the context of sandboxing potentially hostile code. I just want to locate an user's homedir, from a normal VM / Image running trusted code. More precisely I'd like to be able to understand file names like ~/meh or ~foo/blah. -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
participants (3)
-
Damien Pollet -
Torsten Bergmann -
Vicnet