On Tue, Jul 5, 2011 at 1:58 AM, Marcus Denker
<marcus.denker@inria.fr> wrote:
On Jul 5, 2011, at 10:53 AM, Igor Stasenko wrote:
>
> 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.
I personally think we should (mid-term) get one *really* good and fast FFI and
than move as many things as possible from the VM to the image...
I agree with this. �However, in this case...
In the Qwaq VM (now open source but under GPL :( :( ) there is a FileDialogPlugin and it contains primitiveGetFileLocation
"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
"
and there are implementations of fileDialogGetLocation for Mac Windows and linux. �This could serve as a spec. �I know you can't use the code directly. �But I'm sure it would be fine to read the code and use it as a spec. �At least the functionality has been thought through. �I'll also ask Andreas whether there's a chance that the code could be released under MIT.
Security (what people in the past used as an excuse to not do this) we should
deal with on another level.
� � � �Marcus
--
Marcus Denker �-- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.