diff --git a/CLI/cmux.swift b/CLI/cmux.swift index cc3b3faa..b88ad168 100644 --- a/CLI/cmux.swift +++ b/CLI/cmux.swift @@ -6014,6 +6014,11 @@ struct CMUXCLI { } private func currentCmuxAppBundleIdentifier() -> String? { + if let bundleIdentifier = ProcessInfo.processInfo.environment["CMUX_BUNDLE_ID"]?.trimmingCharacters(in: .whitespacesAndNewlines), + !bundleIdentifier.isEmpty { + return bundleIdentifier + } + if let bundleIdentifier = Bundle.main.bundleIdentifier?.trimmingCharacters(in: .whitespacesAndNewlines), !bundleIdentifier.isEmpty { return bundleIdentifier