Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gethomepath not working on iOS 5 / OSxLion

Whenever I use the Gethomepath function of Delphi I keep getting Shell Script Invocation Error.

Was this function replaced by a newer one?

like image 735
Jan Windemuth Avatar asked Jun 05 '12 13:06

Jan Windemuth


1 Answers

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.

like image 84
Jan Windemuth Avatar answered Sep 22 '22 06:09

Jan Windemuth