We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1147f9a commit 9ce847fCopy full SHA for 9ce847f
1 file changed
src/plugmanager.pas
@@ -418,13 +418,19 @@ procedure CleanfpgDesigner();
418
var
419
dataf: string;
420
begin
421
- {$ifdef unix}
+ {$ifdef windows}
422
+ if fileexists('C:\Windows\System32\taskkill.exe') then
423
+ begin
424
+ dataf := 'C:\Windows\System32\taskkill.exe';
425
+ RunWithoutDebug(dataf, ' /F /IM designer_ext.exe');
426
+ end;
427
+ {$else}
428
+ if fileexists('/usr/bin/killall') then
429
430
dataf := '/usr/bin/killall';
431
RunWithoutDebug(dataf, ' designer_ext');
- {$else}
- dataf := 'C:\Windows\System32\taskkill.exe';
- RunWithoutDebug(dataf, ' /F /IM designer_ext.exe');
- {$endif}
432
433
+ {$endif}
434
end;
435
436
end.
0 commit comments