mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 11:09:32 +02:00
IDE: changed default tmp directory for unix to ~/tmp, bug #24816
git-svn-id: trunk@42334 -
This commit is contained in:
parent
4c787fc885
commit
0fbb1e90df
@ -93,11 +93,7 @@ end;
|
||||
|
||||
function GetDefaultTestBuildDirectory: string;
|
||||
begin
|
||||
Result:='/tmp/';
|
||||
if not DirPathExists(Result) then begin
|
||||
if DirPathExists('/var/tmp/') then
|
||||
Result:='/var/tmp/';
|
||||
end;
|
||||
Result:='~/tmp/';
|
||||
end;
|
||||
|
||||
procedure GetDefaultCompilerFilenames(List: TStrings);
|
||||
@ -114,6 +110,7 @@ end;
|
||||
|
||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||
begin
|
||||
AddFilenameToList(List,'~/tmp/');
|
||||
AddFilenameToList(List,'/tmp/');
|
||||
AddFilenameToList(List,'/var/tmp/');
|
||||
end;
|
||||
|
@ -6765,6 +6765,10 @@ var
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
TestDir:=GetTestBuildDirectory;
|
||||
if (TestDir<>'') then begin
|
||||
Result:=ForceDirectoryInteractive(TestDir,[]);
|
||||
if Result<>mrOk then exit;
|
||||
end;
|
||||
if (TestDir='')
|
||||
or (not DirPathExists(TestDir)) then begin
|
||||
if (TestDir<>'') then begin
|
||||
|
Loading…
Reference in New Issue
Block a user