Browse Source

* Add detection in fly, better detection of KDE DE. Fixes issue #40805

Michaël Van Canneyt 1 year ago
parent
commit
36112193dc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/fcl-process/src/unix/process.inc

+ 7 - 1
packages/fcl-process/src/unix/process.inc

@@ -168,7 +168,7 @@ begin
     if (XTermProgram='') then
       begin
       D:=LowerCase(GetEnvironmentVariable('DESKTOP_SESSION'));
-      If (Pos('kde',D)<>0) then
+      If (D='plasma') or (Pos('kde',D)<>0) then
         begin
         TestTerminal(konsole);
         end
@@ -176,6 +176,12 @@ begin
         begin
         TestTerminal(gnometerm);
         end
+      else if (D='fly') then
+        begin
+        // default `fly-term` has a bug!
+        If not TestTerminal(konsole) then
+          TestTerminal(xterm);
+        end
       else if (D='windowmaker') then
         begin
         If not TestTerminal(aterm) then