Whenever I use the Gethomepath function of Delphi I keep getting Shell Script Invocation Error.
Was this function replaced by a newer one?
I finally found a workaround for this: blogs.embarcadero.com/ao/2011/10/04/39144#comment-7998
So "S := ExtractFilePath(paramstr(0)); S := Copy(S, 1, length(S) - 14);" gets the job done.
Note that the length of S depends on your application title.
GetHomePath
functionstring(getenv(PAnsiChar(UTF8String('HOME'))))
. It could be helpful for those who don't have Delphi but know about MacOS development.