* Instead of using a hardcoded SystemIDEDir first try to generate it from the startup-path

git-svn-id: trunk@12492 -
This commit is contained in:
joost 2009-01-03 18:04:32 +00:00
parent 73f31da836
commit 96e141ffc6

View File

@ -152,7 +152,13 @@ begin
{$ifndef unix}
IDEDir:=CompleteDir(DirOf(system.Paramstr(0)));
{$else}
SystemIDEDir:='/usr/lib/fpc/'+version_string+'/ide/text';
SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib/fpc/'+version_string+'/ide/text');
If Not ExistsDir(SystemIDEdir) Then
begin
SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib64/fpc/'+version_string+'/ide/text');
If Not ExistsDir(SystemIDEdir) Then
SystemIDEDir:='/usr/lib/fpc/'+version_string+'/ide/text';
end;
IDEdir:=CompleteDir(FExpand('~/.fp'));
If Not ExistsDir(IDEdir) Then
begin