Skip to content

Commit

Permalink
Add workaround for Firefox 94
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jan 2, 2022
1 parent 61f677a commit 6568249
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qz/installer/certificate/firefox/locator/AppLocator.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public ArrayList<String> getPids(String ... processNames) {
public ArrayList<String> getPids(ArrayList<String> processNames) {
String[] response;
ArrayList<String> 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;
Expand Down

0 comments on commit 6568249

Please sign in to comment.