Hi,
Does FPC contain a function that returns the users $HOME folder? Something that works cross-platform? eg: similar to GetAppConfigDir()
Regards,
- Graeme -

Mailing lists / fpc-pascal / 2010-02
6 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
Does FPC contain a function that returns the users $HOME folder? Something that works cross-platform? eg: similar to GetAppConfigDir()
Regards,
- Graeme -
No.
But it has been a regular request to add this to sysutils.
Please file a feature request in the bug tracker, so we won't forget it. (preferably with implementation patch ;) )
Michael.
Michael Van Canneyt wroteNo. But it has been a regular request to add this to sysutils.
No problems, I'll create a patch for this. GetAppConfigDir() already does most of the work, so I'll piggy-back off that implementation.
Regards,
- Graeme -
No. But it has been a regular request to add this to sysutils. Please file a feature…
Are you sure? Peter Vreman asked for a $HOME macro in lazarus and Mattias implemented after it was implemented in SysUtils.
http://www.freepascal.org/docs-html/rtl/sysutils/getuserdir.html
Vincent
I must be getting old ans suffer from amnesia :-)
I added that function myself somewhere in 2008 :(
Michael.
Michael Van Canneyt wroteI added that function myself somewhere in 2008 :(
r11074 to be precise - dated Sat May 24 11:50:26 2008. :-)
Thank guys!