Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Tell an app another user has open from one the system runs
Țugui Dragoș283312c22c1b
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex 748d3072..69c6b149 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -142,8 +142,10 @@ the Homebrew page's uninstall and cleanups are Homebrew's own.moved, and `peel uninstall` refuses it.- A program another account runs, root's included, can't be quit by the person or by Peel (`kill(2)` answers`EPERM`), so it is never in the question to quit apps (`RunningCopies.Process.mayBeQuit`), and what it runs- from stays with a reason of its own (`heldByAnotherAccount`), as does an item only macOS's own programs hold- (`inUseByMacOS`), since nobody quits those. `OpenFiles.refusal(of:lettingItsProgramsRun:)` is the one rule.+ from stays with a reason of its own: `openForAnotherUser` when it is another user's of this Mac (an account+ from 501, read with `sysctl`), who can quit it in their own account, and `heldByAnotherAccount` for the system's+ own services, as does an item only macOS's own programs hold (`inUseByMacOS`), since nobody quits those.+ `OpenFiles.refusal(heldBy:)` is the one rule.- The app's privacy permissions are reset, when that was chosen, just before the move and only once thechecks the move makes first (the guard, History, and the programs holding it) say it will go(`PrivacyReset`).diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex b349cb74..b50411bb 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -62397,6 +62397,218 @@}}},+ "It is in use by %@ in another user’s account on this Mac. Quit it in that account, then try again." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Používá ji %@ v účtu jiného uživatele v tomto Macu. Ukončete ho v účtu tohoto uživatele a zkuste to znovu."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Es wird gerade von %@ in einem anderen Benutzeraccount auf diesem Mac verwendet. Beende das Programm im anderen Benutzeraccount und versuche es dann erneut."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Está en uso por %@ en la cuenta de otro usuario de este Mac. Sal de él en esa cuenta antes de volver a intentarlo."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il est utilisé par %@ dans le compte d’un autre utilisateur de ce Mac. Quittez-le dans le compte de cet utilisateur, puis réessayez."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "È in uso da %@ nell’account di un altro utente su questo Mac. Escine in quell’account, poi riprova."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@で使用中です。使用しているプログラムはこのMacの別のユーザのアカウントで実行されているため、そのアカウントで終了してから、やり直してください。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "이 Mac의 다른 사용자 계정에서 실행되고 있는 %@에서 사용 중입니다. 그 계정에서 해당 프로그램을 종료한 다음 다시 시도하십시오."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Het wordt gebruikt door %@ in de account van een andere gebruiker op deze Mac. Stop het in die account en probeer het opnieuw."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Jest używane przez: %@. Ten program działa na koncie innego użytkownika tego Maca. Zakończ go na tamtym koncie, a potem spróbuj ponownie."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Está em uso por %@ na conta de outro usuário deste Mac. Encerre-o nessa conta e tente novamente."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Este utilizat de %@ în contul altui utilizator de pe acest Mac. Închideți‑l în contul respectiv, apoi încercați din nou."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Объект используется: %@. Эта программа открыта в учетной записи другого пользователя на этом Mac. Завершите ее в той учетной записи, а затем повторите попытку."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Det används av %@ i en annan användares konto på den här datorn. Avsluta det i det kontot och försök sedan igen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bu Mac’teki başka bir kullanıcının hesabında %@ tarafından kullanılıyor. O hesapta programdan çıkın, ardından yeniden deneyin."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Його використовує %@ в обліковому записі іншого користувача на цьому Mac. Завершіть його в тому обліковому записі та спробуйте ще раз."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它正在被这台Mac上另一个用户账户中的“%@”使用。请在该账户中退出它,然后重试。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它正由%@在這部Mac上其他使用者的帳號中使用。請在該帳號中結束它,然後再試一次。"+ }+ }+ }+ },+ "It is in use by %@ in another user’s account on this Mac. Quit them in that account, then try again." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Používají ji %@ v účtu jiného uživatele v tomto Macu. Ukončete je v účtu tohoto uživatele a zkuste to znovu."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Es wird gerade von %@ in einem anderen Benutzeraccount auf diesem Mac verwendet. Beende die Programme im anderen Benutzeraccount und versuche es dann erneut."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Está en uso por %@ en la cuenta de otro usuario de este Mac. Sal de ellos en esa cuenta antes de volver a intentarlo."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il est utilisé par %@ dans le compte d’un autre utilisateur de ce Mac. Quittez-les dans le compte de cet utilisateur, puis réessayez."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "È in uso da %@ nell’account di un altro utente su questo Mac. Escine in quell’account, poi riprova."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@で使用中です。使用しているプログラムはいずれも、このMacの別のユーザのアカウントで実行されているため、そのアカウントでそれらを終了してから、やり直してください。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "이 Mac의 다른 사용자 계정에서 실행되고 있는 %@에서 사용 중입니다. 그 계정에서 해당 프로그램들을 종료한 다음 다시 시도하십시오."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Het wordt gebruikt door %@ in de account van een andere gebruiker op deze Mac. Stop ze in die account en probeer het opnieuw."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Jest używane przez: %@. Te programy działają na koncie innego użytkownika tego Maca. Zakończ je na tamtym koncie, a potem spróbuj ponownie."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Está em uso por %@ na conta de outro usuário deste Mac. Encerre-os nessa conta e tente novamente."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Este utilizat de %@ în contul altui utilizator de pe acest Mac. Închideți‑le în contul respectiv, apoi încercați din nou."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Объект используется: %@. Эти программы открыты в учетной записи другого пользователя на этом Mac. Завершите их в той учетной записи, а затем повторите попытку."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Det används av %@ i en annan användares konto på den här datorn. Avsluta dem i det kontot och försök sedan igen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bu Mac’teki başka bir kullanıcının hesabında %@ tarafından kullanılıyor. O hesapta programlardan çıkın, ardından yeniden deneyin."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Його використовують %@ в обліковому записі іншого користувача на цьому Mac. Завершіть їх у тому обліковому записі та спробуйте ще раз."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它正在被这台Mac上另一个用户账户中的“%@”使用。请在该账户中退出它们,然后重试。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它正由%@在這部Mac上其他使用者的帳號中使用。請在該帳號中結束它們,然後再試一次。"+ }+ }+ }+ },"It is in use by %@, which run as another account or as the system, so neither you nor Peel can quit them. Stop them in Background Items, or with the app’s own uninstaller, then try again." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swiftindex 3b2a8a13..96bb3dce 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift@@ -448,6 +448,10 @@ extension TrashFailure.Reason {"in use by \(processes.map(Output.plain).joined(separator: ", ")), running as another account or as the system, which Peel can't quit; stop them in Background Items or with the app's own uninstaller, then try again"case .heldByAnotherAccount(let processes):"in use by \(processes.map(Output.plain).joined(separator: ", ")), running as another account or as the system, which Peel can't quit; stop it in Background Items or with the app's own uninstaller, then try again"+ case .openForAnotherUser(let processes) where processes.count > 1:+ "in use by \(processes.map(Output.plain).joined(separator: ", ")) in another user's account on this Mac; quit them in that account, then try again"+ case .openForAnotherUser(let processes):+ "in use by \(processes.map(Output.plain).joined(separator: ", ")) in another user's account on this Mac; quit it in that account, then try again"case .inUseByMacOS(let processes): "in use by macOS (\(processes.map(Output.plain).joined(separator: ", ")))"case .failed(let message): Output.plain(message)}diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/OpenFiles.swift b/Packages/PeelCore/Sources/PeelCore/Removal/OpenFiles.swiftindex faf5983d..2243d242 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/OpenFiles.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/OpenFiles.swift@@ -8,7 +8,10 @@ internal import PeelPrivilegedstruct OpenFiles {private enum Hold { case reads, writes, runs }- private typealias File = (names: [String], process: String, pid: pid_t, hold: Hold, isAnotherAccounts: Bool)+ /// Whose a process is: this account's, another user's of this Mac, or the system's, root's and the services'.+ enum Owner { case thisAccount, anotherUser, system }++ private typealias File = (names: [String], process: String, pid: pid_t, hold: Hold, owner: Owner)private let files: [File]/// The program each process that holds something runs, by its identifier.@@ -31,8 +34,8 @@ struct OpenFiles {guard !paths.isEmpty else { continue }programs[pid] = pathlet process = Self.name(of: pid, program: path)- let isAnotherAccounts = kill(pid, 0) != 0 && errno == EPERM- files += paths.map { (PathComponents.of($0.path), process, pid, $0.hold, isAnotherAccounts) }+ let owner = kill(pid, 0) != 0 && errno == EPERM ? Self.owner(ofAccount: Self.uid(of: pid)) : .thisAccount+ files += paths.map { (PathComponents.of($0.path), process, pid, $0.hold, owner) }}self.files = filesself.programs = programs@@ -69,16 +72,47 @@ struct OpenFiles {func refusal(of url: URL, lettingItsProgramsRun: Bool) -> TrashFailure.Reason? {let names = PathComponents.of(PathPattern.canonical(url).path(percentEncoded: false))if !lettingItsProgramsRun, let excludedProgram, excludedProgram.starts(with: names) { return .peelRunsFromIt }- let holding = holding(url, lettingItsProgramsRun: lettingItsProgramsRun)- guard !holding.isEmpty else { return nil }+ return Self.refusal(heldBy: holding(url, lettingItsProgramsRun: lettingItsProgramsRun).map { file in+ Holder(+ process: file.process, owner: file.owner,+ isMacOSsOwn: programs[file.pid].map(Self.isMacOSsOwn) ?? false+ )+ })+ }++ struct Holder {+ let process: String+ let owner: Owner+ let isMacOSsOwn: Bool+ }++ /// Why an item held by `holders` can't move, each kind of holder with the step that lets it go.+ static func refusal(heldBy holders: [Holder]) -> TrashFailure.Reason? {+ guard !holders.isEmpty else { return nil }// macOS's own programs are named only when nothing else holds the item, since nobody quits them.- let named = holding.filter { !(programs[$0.pid].map(Self.isMacOSsOwn) ?? false) }- guard !named.isEmpty else { return .inUseByMacOS(by: Set(holding.map(\.process)).sorted()) }- let others = Set(named.filter(\.isAnotherAccounts).map(\.process)).sorted()- if !others.isEmpty { return .heldByAnotherAccount(by: others) }+ let named = holders.filter { !$0.isMacOSsOwn }+ guard !named.isEmpty else { return .inUseByMacOS(by: Set(holders.map(\.process)).sorted()) }+ let processes = { (owner: Owner) in Set(named.filter { $0.owner == owner }.map(\.process)).sorted() }+ if case let users = processes(.anotherUser), !users.isEmpty { return .openForAnotherUser(by: users) }+ if case let system = processes(.system), !system.isEmpty { return .heldByAnotherAccount(by: system) }return .heldOpen(by: Set(named.map(\.process)).sorted())}+ /// A user account starts at 501 on macOS, and the accounts below it are the system's services; `nobody` is -2.+ static func owner(ofAccount uid: uid_t?) -> Owner {+ guard let uid, uid >= 501, uid != uid_t(bitPattern: -2) else { return .system }+ return .anotherUser+ }++ /// The account a process runs as, which `sysctl` tells of any process, root's included.+ static func uid(of pid: pid_t) -> uid_t? {+ var info = kinfo_proc()+ var size = MemoryLayout<kinfo_proc>.size+ var name = [CTL_KERN, KERN_PROC, KERN_PROC_PID, pid]+ guard sysctl(&name, u_int(name.count), &info, &size, nil, 0) == 0, size > 0 else { return nil }+ return info.kp_eproc.e_ucred.cr_uid+ }+private func holding(_ url: URL, lettingItsProgramsRun: Bool) -> [File] {let names = PathComponents.of(PathPattern.canonical(url).path(percentEncoded: false))let isAnApp = url.pathExtension.caseInsensitiveCompare("app") == .orderedSamediff --git a/Packages/PeelCore/Sources/PeelCore/Removal/TrashService.swift b/Packages/PeelCore/Sources/PeelCore/Removal/TrashService.swiftindex c2db1daf..5236577f 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/TrashService.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/TrashService.swift@@ -88,6 +88,8 @@ public struct TrashFailure: Sendable, Hashable {case peelRunsFromIt/// Processes of another account, root's included, run from it, and neither the person nor Peel may quit them.case heldByAnotherAccount(by: [String])+ /// Another user of this Mac has it open in their own account, where it can be quit.+ case openForAnotherUser(by: [String])/// Only macOS's own programs hold it, and nobody quits those.case inUseByMacOS(by: [String])case failed(String)@@ -109,13 +111,14 @@ extension TrashFailure.Reason {switch self {case .historyUnreadable, .needsHelper: falsecase .guarded, .changedSinceScan, .claimedSinceScan, .lastCopy, .notPermitted, .locked, .movedWithoutATrace,- .somethingElseMoved, .heldOpen, .peelRunsFromIt, .heldByAnotherAccount, .inUseByMacOS, .failed: true+ .somethingElseMoved, .heldOpen, .peelRunsFromIt, .heldByAnotherAccount, .openForAnotherUser, .inUseByMacOS,+ .failed: true}}var isHeldByPrograms: Bool {switch self {- case .heldOpen, .heldByAnotherAccount: true+ case .heldOpen, .heldByAnotherAccount, .openForAnotherUser: truedefault: false}}@@ -137,6 +140,7 @@ extension TrashFailure.Reason {case .heldOpen: "held-open"case .peelRunsFromIt: "peel-runs-from-it"case .heldByAnotherAccount: "held-by-another-account"+ case .openForAnotherUser: "open-for-another-user"case .inUseByMacOS: "in-use-by-macos"case .failed: "failed"}@@ -146,7 +150,8 @@ extension TrashFailure.Reason {switch self {case .failed(let message): messagecase .somethingElseMoved(let name): name- case .heldOpen(let processes), .heldByAnotherAccount(let processes), .inUseByMacOS(let processes):+ case .heldOpen(let processes), .heldByAnotherAccount(let processes), .openForAnotherUser(let processes),+ .inUseByMacOS(let processes):processes.joined(separator: "\n")default: nil}@@ -173,6 +178,8 @@ extension TrashFailure.Reason {case "peel-runs-from-it": self = .peelRunsFromItcase "held-by-another-account":self = .heldByAnotherAccount(by: (detail ?? "").split(separator: "\n").map(String.init))+ case "open-for-another-user":+ self = .openForAnotherUser(by: (detail ?? "").split(separator: "\n").map(String.init))case "in-use-by-macos": self = .inUseByMacOS(by: (detail ?? "").split(separator: "\n").map(String.init))case "failed": self = .failed(detail ?? "")default: return nildiff --git a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swiftindex 9fe426bd..d96167cb 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift@@ -954,6 +954,7 @@ struct CommandLineTests {#expect(TrashFailure.Reason.heldOpen(by: ["FigmaAgent", "java"]).summary == "in use by FigmaAgent, java; quit them, or stop them in Background Items if they have no window, then try again")#expect(TrashFailure.Reason.heldByAnotherAccount(by: ["CtxHelper", "updater"]).summary == "in use by CtxHelper, updater, running as another account or as the system, which Peel can't quit; stop them in Background Items or with the app's own uninstaller, then try again")#expect(TrashFailure.Reason.inUseByMacOS(by: ["geod", "appleaccountd"]).summary == "in use by macOS (geod, appleaccountd)")+ #expect(TrashFailure.Reason.openForAnotherUser(by: ["Spotify"]).summary == "in use by Spotify in another user's account on this Mac; quit it in that account, then try again")}/// The line printed about the privacy reset after the move, and whether it makes the command fail.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/OpenFilesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/OpenFilesTests.swiftindex 4df5e914..54e46e98 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/OpenFilesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/OpenFilesTests.swift@@ -143,6 +143,27 @@ struct OpenFilesTests {#expect(refusal == .heldOpen(by: ["agent"]))}+ @Test func tellsAnotherUserOfThisMacFromTheSystem() {+ #expect(OpenFiles.owner(ofAccount: 0) == .system)+ #expect(OpenFiles.owner(ofAccount: 89) == .system)+ #expect(OpenFiles.owner(ofAccount: uid_t(bitPattern: -2)) == .system)+ #expect(OpenFiles.owner(ofAccount: nil) == .system)+ #expect(OpenFiles.owner(ofAccount: 502) == .anotherUser)+ #expect(OpenFiles.uid(of: 1) == 0)+ #expect(OpenFiles.uid(of: getpid()) == getuid())+ }++ @Test func anAppOpenInAnotherUsersAccountIsQuitThereNotInBackgroundItems() {+ let open = OpenFiles.Holder(process: "Spotify", owner: .anotherUser, isMacOSsOwn: false)+ let daemon = OpenFiles.Holder(process: "updater", owner: .system, isMacOSsOwn: false)+ let mine = OpenFiles.Holder(process: "agent", owner: .thisAccount, isMacOSsOwn: false)++ #expect(OpenFiles.refusal(heldBy: [open, daemon]) == .openForAnotherUser(by: ["Spotify"]))+ #expect(OpenFiles.refusal(heldBy: [daemon]) == .heldByAnotherAccount(by: ["updater"]))+ #expect(OpenFiles.refusal(heldBy: [mine]) == .heldOpen(by: ["agent"]))+ #expect(OpenFiles.refusal(heldBy: []) == nil)+ }+@Test func knowsMacOSsOwnProgramsByWhereTheyRun() {let macOSs = ["/usr/libexec/appleaccountd", "/usr/sbin/cfprefsd", "/sbin/launchd",diff --git a/Packages/PeelCore/Tests/PeelCoreTests/RefusalLogTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/RefusalLogTests.swiftindex c56da5ad..14a00ce1 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/RefusalLogTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/RefusalLogTests.swift@@ -216,7 +216,7 @@ struct RefusalLogTests {.guarded(nil), .changedSinceScan, .claimedSinceScan, .lastCopy, .notPermitted, .needsHelper,.movedWithoutATrace, .somethingElseMoved(named: "x 2"), .historyUnreadable,.heldOpen(by: ["Figma Agent", "java"]), .peelRunsFromIt, .heldByAnotherAccount(by: ["CtxHelper"]),- .inUseByMacOS(by: ["geod", "appleaccountd"]), .failed("x"),+ .openForAnotherUser(by: ["Spotify"]), .inUseByMacOS(by: ["geod", "appleaccountd"]), .failed("x"),] + GuardRefusal.allCases.map { .guarded($0) }/// A record stores its reason as a word, not a sentence, so a later version of Peel can still read it.@@ -225,7 +225,7 @@ struct RefusalLogTests {#expect(Set(reasons.map(\.name)).count == reasons.count)#expect(reasons.allSatisfy { !$0.name.contains(" ") })- #expect(reasons.filter { $0.detail != nil }.count == 5)+ #expect(reasons.filter { $0.detail != nil }.count == 6)}/// History words a refusal from the reason it stored, so every word leads back to its reason, and a word adiff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex b4a8d23a..6965314c 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -188,6 +188,10 @@ extension TrashFailure.Reason {String(localized: "It is in use by \(processes.formatted(.list(type: .and))), which run as another account or as the system, so neither you nor Peel can quit them. Stop them in Background Items, or with the app’s own uninstaller, then try again.", bundle: bundle)case .heldByAnotherAccount(let processes):String(localized: "It is in use by \(processes.formatted(.list(type: .and))), which runs as another account or as the system, so neither you nor Peel can quit it. Stop it in Background Items, or with the app’s own uninstaller, then try again.", bundle: bundle)+ case .openForAnotherUser(let processes) where processes.count > 1:+ String(localized: "It is in use by \(processes.formatted(.list(type: .and))) in another user’s account on this Mac. Quit them in that account, then try again.", bundle: bundle)+ case .openForAnotherUser(let processes):+ String(localized: "It is in use by \(processes.formatted(.list(type: .and))) in another user’s account on this Mac. Quit it in that account, then try again.", bundle: bundle)case .inUseByMacOS(let processes):String(localized: "macOS is using it right now, through \(processes.formatted(.list(type: .and))), so it stays where it is.", bundle: bundle)case .failed(let message): FixedSentence.translated(message, in: bundle)diff --git a/SAFETY.md b/SAFETY.mdindex fcf2d33f..e34d9814 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -176,7 +176,7 @@ programs that run as another account or as root, macOS's own among them, only thfiles it holds open, which is why Space also leaves macOS's own caches unselected, and in the Library at the top ofthe disk, where those programs keep theirs, does not list them at all. Neither you nor Peel can quit such a program,so Peel never asks you to: what it runs from stays, and says so, until it is stopped in Background Items or by the-app's own uninstaller.+app's own uninstaller, or, for an app another user of this Mac has open, until it is quit in that user's account.The folder your account's crash reports are saved in, `~/Library/Logs/DiagnosticReports`, never moves: macOS'sanalytics helper can't make it again once it is gone, and crash reports would stop being saved. Space offers only