Gethomepath not working on iOS 5 / OSxLion

delphi, firemonkey, osx-lion

Solution

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.

Problem

Whenever I use the Gethomepath function of Delphi I keep getting Shell Script Invocation Error. Was this function replaced by a newer one?

Original source