[Cuis-dev] User directory
Hilaire Fernandes
hfern at free.fr
Thu Feb 23 06:39:38 PST 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230223/7fc5e7f6/attachment.htm>
More information about the Cuis-dev
mailing list