Index: gearhead-1-1.300/gears.pp =================================================================== --- gearhead-1-1.300/gears.pp +++ gearhead-1-1.300/gears.pp 2016-04-04 20:03:50.285180039 +0200 @@ -1273,16 +1273,17 @@ initialization { Make sure we have the required data directories. } + ChDir( '/usr/share/games/gearhead' ); if paramcount() > 0 then begin Config_Directory := IncludeTrailingPathDelimiter( paramstr(1) ); end else begin {$IFDEF WINDOWS} Config_Directory := GetUserDir() + OS_Dir_Separator + 'gharena' + OS_Dir_Separator; {$ELSE} - Config_Directory := GetAppConfigDir(False); + Config_Directory := GetEnv( 'HOME' ) + '/.gearhead/'; {$ENDIF} end; - Config_File := Config_Directory + 'gharena.cfg'; + Config_File := Config_Directory + 'gearhead.conf'; Save_Game_DirName := 'SaveGame'; Save_Game_Directory := Config_Directory + Save_Game_Dirname + OS_Dir_Separator; Index: gearhead-1-1.300/ui4gh.pp =================================================================== --- gearhead-1-1.300/ui4gh.pp +++ gearhead-1-1.300/ui4gh.pp 2016-04-04 20:04:04.381631592 +0200 @@ -343,7 +343,7 @@ T: Integer; begin {See whether or not there's a configuration file.} - S := FSearch(Config_File,'.'); + S := FSearch(Config_File,Config_Directory + ';/etc'); if S <> '' then begin { If we've found a configuration file, } { open it up and start reading. }