From 656824902af9d8bb8a04a3ce397d128f9cde2e50 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Sun, 2 Jan 2022 12:04:58 -0500 Subject: [PATCH] Add workaround for Firefox 94 --- src/qz/installer/certificate/firefox/locator/AppLocator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qz/installer/certificate/firefox/locator/AppLocator.java b/src/qz/installer/certificate/firefox/locator/AppLocator.java index fb71d46a7..c70ab0f08 100644 --- a/src/qz/installer/certificate/firefox/locator/AppLocator.java +++ b/src/qz/installer/certificate/firefox/locator/AppLocator.java @@ -28,9 +28,10 @@ public ArrayList getPids(String ... processNames) { public ArrayList getPids(ArrayList processNames) { String[] response; ArrayList pidList = new ArrayList<>(); - // Find incorrect process name Firefox 79+ per https://github.com/qzind/tray/issues/701 + if(processNames.contains("firefox") && !(SystemUtilities.isWindows() || SystemUtilities.isMac())) { - processNames.add("MainThread"); + processNames.add("MainThread"); // Workaround Firefox 79 https://github.com/qzind/tray/issues/701 + processNames.add("GeckoMain"); // Workaround Firefox 94 https://bugzilla.mozilla.org/show_bug.cgi?id=1742606 } if (processNames.size() == 0) return pidList;