Skip to content

Commit 6bc69b1

Browse files
committed
Do not allow kill FL process
1 parent d12cde7 commit 6bc69b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Plugins/Flow.Launcher.Plugin.ProcessKiller/ProcessHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ internal class ProcessHelper
3131
"explorer"
3232
};
3333

34-
private bool IsSystemProcess(Process p) => _systemProcessList.Contains(p.ProcessName.ToLower());
34+
private const string FlowLauncherProcessName = "Flow.Launcher";
35+
36+
private bool IsSystemProcess(Process p) => _systemProcessList.Contains(p.ProcessName.ToLower()) ||
37+
string.Compare(p.ProcessName, FlowLauncherProcessName, StringComparison.OrdinalIgnoreCase) == 0;
3538

3639
/// <summary>
3740
/// Returns a ProcessResult for evey running non-system process whose name matches the given searchTerm

0 commit comments

Comments
 (0)