mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:09:20 +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}
|
{$ifndef unix}
|
||||||
IDEDir:=CompleteDir(DirOf(system.Paramstr(0)));
|
IDEDir:=CompleteDir(DirOf(system.Paramstr(0)));
|
||||||
{$else}
|
{$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'));
|
IDEdir:=CompleteDir(FExpand('~/.fp'));
|
||||||
If Not ExistsDir(IDEdir) Then
|
If Not ExistsDir(IDEdir) Then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user