Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

Make startup and background items collapsible

BinaryBearsLLC74c258063d18
diff --git a/PureMac/Views/Tools/PerformanceView.swift b/PureMac/Views/Tools/PerformanceView.swift
index 53f6476..ed7ee43 100644
--- a/PureMac/Views/Tools/PerformanceView.swift
+++ b/PureMac/Views/Tools/PerformanceView.swift
@@ -10,6 +10,7 @@ struct PerformanceView: View {
}
@ObservedObject private var monitor = SystemMonitor.shared
+ @State private var startupExpanded = false
@State private var state: LoadState = .idle
@State private var snapshotPendingDeletion: PerformanceSnapshot?
@State private var deletingSnapshotID: String?
@@ -22,7 +23,8 @@ struct PerformanceView: View {
.ignoresSafeArea()
ScrollView {
- LazyVStack(alignment: .leading, spacing: 14) {
+ // Only a few expandable cards: eager layout avoids unstable lazy height estimates.
+ VStack(alignment: .leading, spacing: 14) {
header
liveResources
inspectionContent
@@ -188,49 +190,49 @@ struct PerformanceView: View {
}
private func startupCard(_ items: [PerformanceStartupItem]) -> some View {
- CardSurface(padding: 0, elevation: .standard) {
- VStack(alignment: .leading, spacing: 0) {
- HStack(spacing: 10) {
- IconTile(systemName: "switch.2", tint: Tint.accent, size: 30, corner: 8)
- VStack(alignment: .leading, spacing: 2) {
- Text("Startup and background items")
- .font(.system(size: 15, weight: .semibold))
+ CardSurface(padding: 18, elevation: .standard) {
+ DisclosureGroup(isExpanded: $startupExpanded) {
+ VStack(alignment: .leading, spacing: 12) {
+ HStack {
Text("Launch agents and daemons installed outside macOS system folders")
.font(.system(size: 11.5))
.foregroundStyle(.secondary)
+ Spacer()
+ Button("Login Items Settings") {
+ openLoginItemsSettings()
+ }
+ .buttonStyle(.bordered)
+ .controlSize(.small)
}
- Spacer()
- StatusChip(label: String(localized: "\(items.count) found"), tint: Tint.accent)
- Button("Login Items Settings") {
- openLoginItemsSettings()
- }
- .buttonStyle(.bordered)
- .controlSize(.small)
- }
- .padding(18)
-
- Divider()
-
- if items.isEmpty {
- EmptyInspectionRow(
- systemImage: "checkmark.circle.fill",
- title: "No launchd items found",
- detail: "The inspected user and third-party launch folders are empty."
- )
- } else {
- LazyVStack(spacing: 0) {
- ForEach(Array(items.enumerated()), id: \.element.id) { index, item in
- StartupItemRow(item: item) {
- reveal(item.sourceURL)
- }
- if index < items.count - 1 {
- Divider()
- .padding(.leading, 58)
+ Divider()
+ if items.isEmpty {
+ EmptyInspectionRow(
+ systemImage: "checkmark.circle.fill",
+ title: "No launchd items found",
+ detail: "The inspected user and third-party launch folders are empty."
+ )
+ } else {
+ LazyVStack(spacing: 0) {
+ ForEach(Array(items.enumerated()), id: \.element.id) { index, item in
+ StartupItemRow(item: item) { reveal(item.sourceURL) }
+ if index < items.count - 1 {
+ Divider().padding(.leading, 58)
+ }
}
}
}
}
+ .padding(.top, 14)
+ } label: {
+ HStack(spacing: 10) {
+ IconTile(systemName: "switch.2", tint: Tint.accent, size: 30, corner: 8)
+ Text("Startup and background items")
+ .font(.system(size: 15, weight: .semibold))
+ Spacer()
+ StatusChip(label: String(format: String(localized: "%lld found"), Int64(items.count)), tint: Tint.accent)
+ }
}
+ .accessibilityIdentifier("performance.startupDisclosure")
}
}
diff --git a/PureMac/ar.lproj/Localizable.strings b/PureMac/ar.lproj/Localizable.strings
index 76a41cf..47ba32c 100644
--- a/PureMac/ar.lproj/Localizable.strings
+++ b/PureMac/ar.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/de.lproj/Localizable.strings b/PureMac/de.lproj/Localizable.strings
index 3f59810..515b195 100644
--- a/PureMac/de.lproj/Localizable.strings
+++ b/PureMac/de.lproj/Localizable.strings
@@ -895,3 +895,8 @@
"Update method" = "Update method";
"View releases" = "View releases";
"You're using the latest available version of PureMac." = "You're using the latest available version of PureMac.";
+
+/* Collapsible startup items (#172): English fallbacks */
+"A PureMac update is available" = "A PureMac update is available";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
diff --git a/PureMac/en.lproj/Localizable.strings b/PureMac/en.lproj/Localizable.strings
index 7905c88..3fd3642 100644
--- a/PureMac/en.lproj/Localizable.strings
+++ b/PureMac/en.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/es.lproj/Localizable.strings b/PureMac/es.lproj/Localizable.strings
index a4dd85a..ea905f1 100644
--- a/PureMac/es.lproj/Localizable.strings
+++ b/PureMac/es.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/fr.lproj/Localizable.strings b/PureMac/fr.lproj/Localizable.strings
index 76a0498..32673ce 100644
--- a/PureMac/fr.lproj/Localizable.strings
+++ b/PureMac/fr.lproj/Localizable.strings
@@ -867,6 +867,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -883,6 +884,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/ja.lproj/Localizable.strings b/PureMac/ja.lproj/Localizable.strings
index 7ba80f0..60a03ed 100644
--- a/PureMac/ja.lproj/Localizable.strings
+++ b/PureMac/ja.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/pl.lproj/Localizable.strings b/PureMac/pl.lproj/Localizable.strings
index 9fa43a0..17ca40d 100644
--- a/PureMac/pl.lproj/Localizable.strings
+++ b/PureMac/pl.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/pt-BR.lproj/Localizable.strings b/PureMac/pt-BR.lproj/Localizable.strings
index 1844c1b..830c3a0 100644
--- a/PureMac/pt-BR.lproj/Localizable.strings
+++ b/PureMac/pt-BR.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/ru.lproj/Localizable.strings b/PureMac/ru.lproj/Localizable.strings
index a7084eb..dad65e9 100644
--- a/PureMac/ru.lproj/Localizable.strings
+++ b/PureMac/ru.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/uk.lproj/Localizable.strings b/PureMac/uk.lproj/Localizable.strings
index 8ce4be1..40941c3 100644
--- a/PureMac/uk.lproj/Localizable.strings
+++ b/PureMac/uk.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/zh-Hans.lproj/Localizable.strings b/PureMac/zh-Hans.lproj/Localizable.strings
index d67d79c..a4cf006 100644
--- a/PureMac/zh-Hans.lproj/Localizable.strings
+++ b/PureMac/zh-Hans.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "此 Mac 上无法使用 tmutil。";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/PureMac/zh-Hant.lproj/Localizable.strings b/PureMac/zh-Hant.lproj/Localizable.strings
index b64e9b7..d11264d 100644
--- a/PureMac/zh-Hant.lproj/Localizable.strings
+++ b/PureMac/zh-Hant.lproj/Localizable.strings
@@ -871,6 +871,7 @@
"tmutil is not available on this Mac." = "tmutil is not available on this Mac.";
/* Additional interface strings. */
+"A PureMac update is available" = "A PureMac update is available";
"Build %@" = "Build %@";
"Check access" = "Check access";
"Checking for updates…" = "Checking for updates…";
@@ -887,6 +888,8 @@
"Open release page" = "Open release page";
"PureMac %@ is available" = "PureMac %@ is available";
"Settings" = "Settings";
+"Settings need attention" = "Settings need attention";
+"Settings to review" = "Settings to review";
"The release service is unavailable. Please try again later." = "The release service is unavailable. Please try again later.";
"This build has no readable version. Open the releases page to check manually." = "This build has no readable version. Open the releases page to check manually.";
"To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later." = "To update with Homebrew, run this command in Terminal. The cask may follow the GitHub release a little later.";
diff --git a/README.md b/README.md
index 4125a73..c04be42 100644
--- a/README.md
+++ b/README.md
@@ -164,7 +164,7 @@ Cleanup results support name/path search, size and age filters, sorting, and sel
**Protection** checks Gatekeeper, FileVault, the application firewall, System Integrity Protection, and installed XProtect metadata. A failed or unavailable check stays unknown. It also provides shortcuts to privacy and permission settings. This is a configuration audit, not an antivirus or malware scanner.
-**Performance** shows CPU and memory information, lists third-party launch-agent/daemon definitions, and lists local snapshots. A launch definition is not proof that a process is running. You can open Login Items or Activity Monitor and delete a specific Time Machine local snapshot after confirmation. Snapshot sizes are not estimated, and system update snapshots cannot be removed here.
+**Performance** shows CPU and memory information, lists third-party launch-agent/daemon definitions in a collapsible card, and lists local snapshots. A launch definition is not proof that a process is running. You can open Login Items or Activity Monitor and delete a specific Time Machine local snapshot after confirmation. Snapshot sizes are not estimated, and system update snapshots cannot be removed here.
### App updates