From f371a3da09c7075de7a0c1c3843d502d0b08281c Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Wed, 24 Jan 2024 09:34:18 +1100 Subject: [PATCH] cmd/lib/check: skip checking for running firefox, unless a firefox cask --- cmd/lib/check.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/lib/check.rb b/cmd/lib/check.rb index 70e691fe55..587a45658a 100644 --- a/cmd/lib/check.rb +++ b/cmd/lib/check.rb @@ -139,6 +139,11 @@ module Check .grep_v(/\.\d+\Z/) missing_running_apps = running_apps - Array(uninstall_directives[:quit]) + + # Some applications may launch a browser session after install + # Skip Firefox, unless the cask is a Firefox cask + missing_running_apps.delete("org.mozilla.firefox") unless cask.token.include?("firefox") + if missing_running_apps.any? message = "Some applications are still running, add them to #{Formatter.identifier("uninstall quit:")}\n" message += missing_running_apps.join("\n")