[Cuis-dev] User directory
Juan Vuletich
juan at cuis.st
Fri Feb 24 03:12:39 PST 2023
Neat hack!
Cheers,
On 2/23/2023 11:39 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Both does not work.
>
> I need the home directory of the user, i.e. /home/ken
>
> For now I will do it at OS level. Work on Linux, for the Windows
> counter part, I hope I use the right environement variable (feedback,
> any?)
>
> On Linux
>
> # execute
> exec "$VM/squeak" $COMPO \
> --plugins "$VM" \
> --encoding utf-8 \
> -vm-display-X11 \
> --title "GNU Dr. Geo" \
> "$image" \
> * -d "Smalltalk at: #home put: '$HOME' asDirectoryEntry"*
> $DRGEO_OPT"$filename"
>
>
> On Windows:
>
> START "" /MAX /B VM\SqueakConsole.exe Resources\image\drgeo.image*-d
> "Smalltalk at: #home put: '%LOCALAPPDATA%' asDirectoryEntry"*
>
>
> Le 23/02/2023 à 15:34, ken.dickey at whidbey.com a écrit :
>>
>> Depending on what you want:
>>
>> Smalltalk imagePath.
>>
>> Note also (home directory on Linux)
>>
>> '~' asDirectoryEntry pathName.
> --
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230224/b100f9df/attachment.htm>
More information about the Cuis-dev
mailing list