编辑器

优化目录打开
This commit is contained in:
JianjunLiu 2023-03-15 15:44:54 +08:00
parent 2a1c1680bf
commit 0f6839bdc2
1 changed files with 11 additions and 7 deletions

View File

@ -3194,13 +3194,17 @@ type tgtkapis = class() //gtk
begin begin
if ifstring(p) then if ifstring(p) then
begin begin
for i := length(p) downto 1 do if fileexists("","/usr/bin/caja") then
begin begin
if p[i]="/" then for i := length(p) downto 1 do
begin begin
tsl_gtk_execsystem(format('caja "%s" &',p[1:i])); if p[i]="/" then
break; begin
end tsl_gtk_execsystem(format('caja "%s" &',p[1:i]));
break;
end
end
return ;//
end end
tsl_gtk_execsystem(format('nautilus "%s" &',p)); tsl_gtk_execsystem(format('nautilus "%s" &',p));
return 1; return 1;