mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 07:08:12 +02:00
* 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:
parent
73f31da836
commit
96e141ffc6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user