Getting the current directory lazarus / 1-Linux ---------------------------------------------------------------------- Jean-Marc · 2005-04-11 20:01 Running a program from a subdirectory, the command GetDir(0,CurrentDir) returns the user main directory, not the one where the program is running from. Anyone knows how to get the program's directory in Linux or what I am doing wrong? Thanks for the help. ---------------------------------------------------------------------- Drewski · 2005-04-11 23:45 you can use: var APath: String; ... APath := ExtractFilePath(Application.ExeName); HTH Andrew ---------------------------------------------------------------------- Jean-Marc · 2005-04-12 19:40 Fine. Thanks a lot