Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Make Home's rows say what they offer, and show what stops every move

Țugui Dragoșf7ed5d5329a1
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index 70e8ddc5..65a6cc0b 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -34416,6 +34416,218 @@
}
}
},
+ "Copy the install command and run it in Terminal: it asks for your password." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Zkopírujte instalační příkaz a spusťte ho v Terminálu: vyžádá si vaše heslo."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kopiere den Installationsbefehl und führe ihn im Terminal aus: Er fragt nach deinem Passwort."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copia el comando de instalación y ejecútalo en Terminal: te pedirá la contraseña."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiez la commande d’installation et exécutez-la dans Terminal : elle vous demande votre mot de passe."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copia il comando di installazione ed eseguilo in Terminale: ti chiederà la password."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "インストールコマンドをコピーしてターミナルで実行してください。パスワードの入力を求められます。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "설치 명령을 복사하여 터미널에서 실행하십시오. 실행하면 암호를 묻습니다."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kopieer het installatiecommando en voer het uit in Terminal: je wordt om je wachtwoord gevraagd."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Skopiuj polecenie instalacji i uruchom je w Terminalu: poprosi o Twoje hasło."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copie o comando de instalação e execute-o no Terminal: ele pede a sua senha."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiați comanda de instalare și rulați‑o în Terminal: vă va cere parola."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скопируйте команду установки и выполните ее в Терминале: она запросит Ваш пароль."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kopiera installationskommandot och kör det i Terminal: det ber om ditt lösenord."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Yükleme komutunu kopyalayıp Terminal’de çalıştırın: parolanızı ister."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скопіюйте команду інсталювання й виконайте її в Терміналі: вона попросить ваш пароль."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "请拷贝安装命令并在“终端”中运行:它会要求你输入密码。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "請拷貝安裝指令並在「終端機」中執行:它會要求輸入你的密碼。"
+ }
+ }
+ }
+ },
+ "Couldn’t turn on" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nepodařilo se zapnout"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Konnte nicht aktiviert werden"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No se ha podido activar"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Activation impossible"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Impossibile attivare"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "オンにできませんでした"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "켤 수 없음"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kon niet worden ingeschakeld"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nie udało się włączyć"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Não foi possível ativar"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nu s‑a putut activa"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Не удалось включить"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kunde inte slås på"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Açılamadı"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Не вдалося увімкнути"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "未能打开"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "無法開啟"
+ }
+ }
+ }
+ },
"Critical" : {
"localizations" : {
"cs" : {
@@ -84092,215 +84304,108 @@
}
}
},
- "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal. Copy the install command and run it in Terminal: it asks for your password." : {
+ "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal." : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Umožňuje v Terminálu odinstalovávat aplikace a odstraňovat zbytky, mezipaměti a duplikáty. Zkopírujte instalační příkaz a spusťte ho v Terminálu: vyžádá si vaše heslo."
+ "value" : "Umožňuje v Terminálu odinstalovávat aplikace a odstraňovat zbytky, mezipaměti a duplikáty."
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Damit kannst du im Terminal Apps deinstallieren und Überreste, Caches und Duplikate entfernen. Kopiere den Installationsbefehl und führe ihn im Terminal aus: Er fragt nach deinem Passwort."
+ "value" : "Damit kannst du im Terminal Apps deinstallieren und Überreste, Caches und Duplikate entfernen."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Te permite desinstalar apps y eliminar restos, cachés y duplicados desde Terminal. Copia el comando de instalación y ejecútalo en Terminal: te pedirá la contraseña."
+ "value" : "Te permite desinstalar apps y eliminar restos, cachés y duplicados desde Terminal."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Vous permet de désinstaller des apps et de supprimer les fichiers résiduels, les caches et les doublons depuis Terminal. Copiez la commande d’installation et exécutez-la dans Terminal : elle vous demande votre mot de passe."
+ "value" : "Vous permet de désinstaller des apps et de supprimer les fichiers résiduels, les caches et les doublons depuis Terminal."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ti permette di disinstallare app e rimuovere residui, cache e duplicati da Terminale. Copia il comando di installazione ed eseguilo in Terminale: ti chiederà la password."
+ "value" : "Ti permette di disinstallare app e rimuovere residui, cache e duplicati da Terminale."
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "ターミナルからアプリをアンインストールしたり、残存ファイル、キャッシュ、重複項目を取り除いたりできるようにします。インストールコマンドをコピーしてターミナルで実行してください。パスワードの入力を求められます。"
+ "value" : "ターミナルからアプリをアンインストールしたり、残存ファイル、キャッシュ、重複項目を取り除いたりできるようにします。"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "터미널에서 앱을 제거하고 잔여 파일, 캐시, 중복된 항목을 정리할 수 있습니다. 설치 명령을 복사하여 터미널에서 실행하십시오. 실행하면 암호를 묻습니다."
+ "value" : "터미널에서 앱을 제거하고 잔여 파일, 캐시, 중복된 항목을 정리할 수 있습니다."
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Hiermee kun je vanuit Terminal apps deïnstalleren en restbestanden, caches en dubbele onderdelen opruimen. Kopieer het installatiecommando en voer het uit in Terminal: je wordt om je wachtwoord gevraagd."
+ "value" : "Hiermee kun je vanuit Terminal apps deïnstalleren en restbestanden, caches en dubbele onderdelen opruimen."
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Pozwala odinstalowywać aplikacje i przenosić do Kosza pozostałości, pamięci podręczne i duplikaty z poziomu Terminala. Skopiuj polecenie instalacji i uruchom je w Terminalu: poprosi o Twoje hasło."
+ "value" : "Pozwala odinstalowywać aplikacje i przenosić do Kosza pozostałości, pamięci podręczne i duplikaty z poziomu Terminala."
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Permite desinstalar apps e limpar sobras, caches e duplicatas pelo Terminal. Copie o comando de instalação e execute-o no Terminal: ele pede a sua senha."
+ "value" : "Permite desinstalar apps e limpar sobras, caches e duplicatas pelo Terminal."
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Vă permite să dezinstalați aplicații și să eliminați fișiere rămase, memorii tampon și duplicate din Terminal. Copiați comanda de instalare și rulați‑o în Terminal: vă va cere parola."
+ "value" : "Vă permite să dezinstalați aplicații și să eliminați fișiere rămase, memorii tampon și duplicate din Terminal."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Позволяет удалять приложения, остатки, кэши и дубликаты из Терминала. Скопируйте команду установки и выполните ее в Терминале: она запросит Ваш пароль."
+ "value" : "Позволяет удалять приложения, остатки, кэши и дубликаты из Терминала."
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Låter dig avinstallera appar och rensa bort kvarlämnade filer, cachar och dubbletter från Terminal. Kopiera installationskommandot och kör det i Terminal: det ber om ditt lösenord."
+ "value" : "Låter dig avinstallera appar och rensa bort kvarlämnade filer, cachar och dubbletter från Terminal."
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Terminal’den uygulamaların yüklemesini kaldırmanızı ve kalıntıları, önbellekleri ve yinelenenleri temizlemenizi sağlar. Yükleme komutunu kopyalayıp Terminal’de çalıştırın: parolanızı ister."
+ "value" : "Terminal’den uygulamaların yüklemesini kaldırmanızı ve kalıntıları, önbellekleri ve yinelenenleri temizlemenizi sağlar."
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Дає змогу деінсталювати програми та вилучати залишки, кеші й дублікати в Терміналі. Скопіюйте команду інсталювання й виконайте її в Терміналі: вона попросить ваш пароль."
+ "value" : "Дає змогу деінсталювати програми та вилучати залишки, кеші й дублікати в Терміналі."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "让你能在“终端”中卸载App,并清除残留文件、缓存和重复项。请拷贝安装命令并在“终端”中运行:它会要求你输入密码。"
+ "value" : "让你能在“终端”中卸载App,并清除残留文件、缓存和重复项。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "讓你可以從「終端機」解除安裝App,並清除殘留檔案、快取和重複項目。請拷貝安裝指令並在「終端機」中執行:它會要求輸入你的密碼。"
- }
- }
- }
- },
- "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal. Putting it on the path takes an administrator, and Peel’s Settings gives a line for ~/.zshrc that runs it from this account." : {
- "comment" : "The note of Home's Command Line row on an account that is not an administrator's. Keep ~/.zshrc as it is.",
- "localizations" : {
- "cs" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Umožňuje v Terminálu odinstalovávat aplikace a odstraňovat zbytky, mezipaměti a duplikáty. Aby byl dostupný přes PATH, je potřeba správce, a Nastavení Peelu nabízí řádek pro soubor ~/.zshrc, díky kterému ho můžete spouštět z tohoto účtu."
- }
- },
- "de" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Damit kannst du im Terminal Apps deinstallieren und Überreste, Caches und Duplikate entfernen. Um das Tool in den Suchpfad aufzunehmen, wird ein Administrator benötigt, und die Peel-Einstellungen bieten eine Zeile für ~/.zshrc, über die du es mit diesem Benutzeraccount verwenden kannst."
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Te permite desinstalar apps y eliminar restos, cachés y duplicados desde Terminal. Para ponerla en el PATH hace falta un administrador, y los ajustes de Peel ofrecen una línea para ~/.zshrc que permite ejecutarla desde esta cuenta."
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Vous permet de désinstaller des apps et de supprimer les fichiers résiduels, les caches et les doublons depuis Terminal. Le placer dans le PATH nécessite un administrateur, et les Réglages de Peel fournissent une ligne à ajouter au fichier ~/.zshrc pour l’exécuter depuis ce compte."
- }
- },
- "it" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Ti permette di disinstallare app e rimuovere residui, cache e duplicati da Terminale. Per inserirlo nel PATH serve un amministratore, e nelle Impostazioni di Peel trovi una riga per il file ~/.zshrc con cui eseguirlo da questo account."
- }
- },
- "ja" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "ターミナルからアプリをアンインストールしたり、残存ファイル、キャッシュ、重複項目を取り除いたりできるようにします。PATHの通った場所に置くには管理者が必要ですが、Peelの“設定”には、このアカウントから実行するための~/.zshrc用の行が用意されています。"
- }
- },
- "ko" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "터미널에서 앱을 제거하고 잔여 파일, 캐시, 중복된 항목을 정리할 수 있습니다. PATH에 추가하려면 관리자가 필요하며, Peel 설정에는 이 계정에서 이 도구를 실행할 수 있게 하는 ~/.zshrc용 줄이 있습니다."
- }
- },
- "nl" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hiermee kun je vanuit Terminal apps deïnstalleren en restbestanden, caches en dubbele onderdelen opruimen. Om het aan het zoekpad toe te voegen, is een beheerder nodig, en in Peel-instellingen staat een regel voor ~/.zshrc waarmee je het vanuit deze account kunt uitvoeren."
- }
- },
- "pl" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Pozwala odinstalowywać aplikacje i przenosić do Kosza pozostałości, pamięci podręczne i duplikaty z poziomu Terminala. Dodanie go do zmiennej PATH wymaga administratora, a w Ustawieniach Peel znajdziesz wiersz do pliku ~/.zshrc, dzięki któremu uruchomisz go z tego konta."
- }
- },
- "pt" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Permite desinstalar apps e limpar sobras, caches e duplicatas pelo Terminal. Colocar a ferramenta no PATH requer um administrador, e os Ajustes do Peel oferecem uma linha para o ~/.zshrc que permite executá-la a partir desta conta."
- }
- },
- "ro" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Vă permite să dezinstalați aplicații și să eliminați fișiere rămase, memorii tampon și duplicate din Terminal. Pentru a‑l adăuga în PATH este nevoie de un administrator, iar în configurările Peel găsiți o linie pentru ~/.zshrc, cu care îl puteți rula din acest cont."
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Позволяет удалять приложения, остатки, кэши и дубликаты из Терминала. Поместить инструмент в PATH может только администратор, а в Настройках Peel есть строка для ~/.zshrc, с которой его можно запускать из этой учетной записи."
- }
- },
- "sv" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Låter dig avinstallera appar och rensa bort kvarlämnade filer, cachar och dubbletter från Terminal. Det krävs en administratör för att lägga till det i sökvägen, och i Peels inställningar finns en rad för ~/.zshrc som gör att det kan köras från det här kontot."
- }
- },
- "tr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Terminal’den uygulamaların yüklemesini kaldırmanızı ve kalıntıları, önbellekleri ve yinelenenleri temizlemenizi sağlar. Onu komut arama yoluna eklemek için bir yönetici gerekir; Peel Ayarları ise onu bu hesaptan çalıştırmak için ~/.zshrc dosyasına eklenecek bir satır sunar."
- }
- },
- "uk" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Дає змогу деінсталювати програми та вилучати залишки, кеші й дублікати в Терміналі. Додати інструмент до PATH може лише адміністратор, а в Параметрах Peel є рядок для ~/.zshrc, завдяки якому його можна запускати з цього облікового запису."
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "让你能在“终端”中卸载App,并清除残留文件、缓存和重复项。将它放到PATH中需要管理员,不过Peel的“设置”会提供一行可添加到~/.zshrc的代码,让你能在此账户中运行它。"
- }
- },
- "zh-Hant" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "讓你可以從「終端機」解除安裝App,並清除殘留檔案、快取和重複項目。將它加入PATH需要管理者,而Peel「設定」提供了可加入~/.zshrc的一行設定,讓你從此帳號執行它。"
+ "value" : "讓你可以從「終端機」解除安裝App,並清除殘留檔案、快取和重複項目。"
}
}
}
@@ -146464,6 +146569,112 @@
}
}
},
+ "Putting it on the path takes an administrator, and Peel’s Settings gives a line for ~/.zshrc that runs it from this account." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aby byl dostupný přes PATH, je potřeba správce, a Nastavení Peelu nabízí řádek pro soubor ~/.zshrc, díky kterému ho můžete spouštět z tohoto účtu."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Um das Tool in den Suchpfad aufzunehmen, wird ein Administrator benötigt, und die Peel-Einstellungen bieten eine Zeile für ~/.zshrc, über die du es mit diesem Benutzeraccount verwenden kannst."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Para ponerla en el PATH hace falta un administrador, y los ajustes de Peel ofrecen una línea para ~/.zshrc que permite ejecutarla desde esta cuenta."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Le placer dans le PATH nécessite un administrateur, et les Réglages de Peel fournissent une ligne à ajouter au fichier ~/.zshrc pour l’exécuter depuis ce compte."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Per inserirlo nel PATH serve un amministratore, e nelle Impostazioni di Peel trovi una riga per il file ~/.zshrc con cui eseguirlo da questo account."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "PATHの通った場所に置くには管理者が必要ですが、Peelの“設定”には、このアカウントから実行するための~/.zshrc用の行が用意されています。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "PATH에 추가하려면 관리자가 필요하며, Peel 설정에는 이 계정에서 이 도구를 실행할 수 있게 하는 ~/.zshrc용 줄이 있습니다."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Om het aan het zoekpad toe te voegen, is een beheerder nodig, en in Peel-instellingen staat een regel voor ~/.zshrc waarmee je het vanuit deze account kunt uitvoeren."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dodanie go do zmiennej PATH wymaga administratora, a w Ustawieniach Peel znajdziesz wiersz do pliku ~/.zshrc, dzięki któremu uruchomisz go z tego konta."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Colocar a ferramenta no PATH requer um administrador, e os Ajustes do Peel oferecem uma linha para o ~/.zshrc que permite executá-la a partir desta conta."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pentru a‑l adăuga în PATH este nevoie de un administrator, iar în configurările Peel găsiți o linie pentru ~/.zshrc, cu care îl puteți rula din acest cont."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Поместить инструмент в PATH может только администратор, а в Настройках Peel есть строка для ~/.zshrc, с которой его можно запускать из этой учетной записи."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Det krävs en administratör för att lägga till det i sökvägen, och i Peels inställningar finns en rad för ~/.zshrc som gör att det kan köras från det här kontot."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Onu komut arama yoluna eklemek için bir yönetici gerekir; Peel Ayarları ise onu bu hesaptan çalıştırmak için ~/.zshrc dosyasına eklenecek bir satır sunar."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Додати інструмент до PATH може лише адміністратор, а в Параметрах Peel є рядок для ~/.zshrc, завдяки якому його можна запускати з цього облікового запису."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "将它放到PATH中需要管理员,不过Peel的“设置”会提供一行可添加到~/.zshrc的代码,让你能在此账户中运行它。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "將它加入PATH需要管理者,而Peel「設定」提供了可加入~/.zshrc的一行設定,讓你從此帳號執行它。"
+ }
+ }
+ }
+ },
"Quick Actions" : {
"localizations" : {
"cs" : {
@@ -181124,108 +181335,108 @@
}
}
},
- "Tells you when your apps have new updates. With “Watch the Trash” on in Settings, it also tells you when you move an app to the Trash yourself, so you can clear what it left behind. With “Warn when the disk is almost full” on, it tells you that too." : {
+ "Tells you when your apps have new updates and when a Homebrew upgrade finishes or runs into a problem. With “Watch the Trash” on in Settings, it also tells you when you move an app to the Trash yourself, so you can clear what it left behind. With “Warn when the disk is almost full” on, it tells you that too." : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Upozorní vás, když jsou pro vaše aplikace nové aktualizace. Když je v Nastavení zapnutá volba „Sledovat koš“, upozorní vás také, když sami přesunete aplikaci do koše, abyste mohli odstranit, co po ní zůstalo. Když je zapnutá volba „Upozornit, když je disk téměř plný“, upozorní vás i na to."
+ "value" : "Upozorní vás, když jsou pro vaše aplikace nové aktualizace a když upgrade pomocí Homebrew skončí nebo narazí na problém. Když je v Nastavení zapnutá volba „Sledovat koš“, upozorní vás také, když sami přesunete aplikaci do koše, abyste mohli odstranit, co po ní zůstalo. Když je zapnutá volba „Upozornit, když je disk téměř plný“, upozorní vás i na to."
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Informiert dich, wenn es neue Updates für deine Apps gibt. Ist „Papierkorb beobachten“ in den Einstellungen aktiviert, wirst du auch benachrichtigt, wenn du selbst eine App in den Papierkorb legst, damit du entfernen kannst, was sie hinterlassen hat. Ist „Warnen, wenn das Volume fast voll ist“ aktiviert, wirst du auch darüber benachrichtigt."
+ "value" : "Informiert dich, wenn es neue Updates für deine Apps gibt und wenn ein Homebrew-Upgrade abgeschlossen ist oder auf ein Problem stößt. Ist „Papierkorb beobachten“ in den Einstellungen aktiviert, wirst du auch benachrichtigt, wenn du selbst eine App in den Papierkorb legst, damit du entfernen kannst, was sie hinterlassen hat. Ist „Warnen, wenn das Volume fast voll ist“ aktiviert, wirst du auch darüber benachrichtigt."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Te avisa cuando tus apps tienen actualizaciones nuevas. Con “Vigilar la papelera” activado en Ajustes, también te avisa cuando trasladas una app a la papelera por tu cuenta, para que puedas eliminar lo que ha dejado. Con “Avisar cuando el disco esté casi lleno” activado, también te avisa de eso."
+ "value" : "Te avisa cuando tus apps tienen actualizaciones nuevas y cuando una actualización de paquetes de Homebrew termina o tiene un problema. Con “Vigilar la papelera” activado en Ajustes, también te avisa cuando trasladas una app a la papelera por tu cuenta, para que puedas eliminar lo que ha dejado. Con “Avisar cuando el disco esté casi lleno” activado, también te avisa de eso."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Vous prévient lorsque vos apps ont de nouvelles mises à jour. Si « Surveiller la corbeille » est activé dans les Réglages, les notifications vous préviennent aussi lorsque vous placez vous-même une app dans la corbeille, pour que vous puissiez supprimer ce qu’elle a laissé derrière elle. Si « Avertir lorsque le disque est presque plein » est activé, elles vous signalent aussi que le disque est presque plein."
+ "value" : "Vous prévient lorsque vos apps ont de nouvelles mises à jour, et lorsqu’une mise à niveau Homebrew se termine ou rencontre un problème. Si « Surveiller la corbeille » est activé dans les Réglages, les notifications vous préviennent aussi lorsque vous placez vous-même une app dans la corbeille, pour que vous puissiez supprimer ce qu’elle a laissé derrière elle. Si « Avertir lorsque le disque est presque plein » est activé, elles vous signalent aussi que le disque est presque plein."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ti avvisa quando le tue app hanno nuovi aggiornamenti. Con “Monitora il Cestino” attivo nelle Impostazioni, ti avvisa anche quando sposti un’app nel Cestino per conto tuo, così puoi rimuovere ciò che si è lasciata dietro. Con “Avvisa quando il disco è quasi pieno” attivo, ti avvisa anche di questo."
+ "value" : "Ti avvisa quando le tue app hanno nuovi aggiornamenti e quando un aggiornamento tramite Homebrew termina o riscontra un problema. Con “Monitora il Cestino” attivo nelle Impostazioni, ti avvisa anche quando sposti un’app nel Cestino per conto tuo, così puoi rimuovere ciò che si è lasciata dietro. Con “Avvisa quando il disco è quasi pieno” attivo, ti avvisa anche di questo."
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "アプリに新しいアップデートがあると知らせます。“設定”で“ゴミ箱を監視”をオンにしていると、自分でアプリをゴミ箱に入れたときにも知らせるので、そのアプリが残したものを取り除けます。“ディスクの空きが少なくなったら警告”をオンにしていると、ディスクの空きが少なくなったときにも知らせます。"
+ "value" : "アプリに新しいアップデートがあるときと、Homebrewのアップグレードが完了したとき、または問題が発生したときに知らせます。“設定”で“ゴミ箱を監視”をオンにしていると、自分でアプリをゴミ箱に入れたときにも知らせるので、そのアプリが残したものを取り除けます。“ディスクの空きが少なくなったら警告”をオンにしていると、ディスクの空きが少なくなったときにも知らせます。"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "앱에 새로운 업데이트가 있으면 알려 줍니다. 설정에서 ‘휴지통 지켜보기’가 켜져 있으면 사용자가 직접 앱을 휴지통으로 이동했을 때도 알려 주므로, 앱이 남긴 항목을 정리할 수 있습니다. ‘디스크가 거의 가득 차면 경고하기’가 켜져 있으면 디스크가 거의 가득 찼을 때도 알려 줍니다."
+ "value" : "앱에 새로운 업데이트가 있을 때와 Homebrew 업그레이드가 완료되거나 문제가 발생했을 때 알려 줍니다. 설정에서 ‘휴지통 지켜보기’가 켜져 있으면 사용자가 직접 앱을 휴지통으로 이동했을 때도 알려 주므로, 앱이 남긴 항목을 정리할 수 있습니다. ‘디스크가 거의 가득 차면 경고하기’가 켜져 있으면 디스크가 거의 가득 찼을 때도 알려 줍니다."
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Laat je weten wanneer er nieuwe updates voor je apps zijn. Als 'Houd prullenmand in de gaten' is ingeschakeld in Instellingen, laat Peel je ook weten wanneer je zelf een app naar de prullenmand verplaatst, zodat je kunt opruimen wat die heeft achtergelaten. Is 'Waarschuw als de schijf bijna vol is' ingeschakeld, dan laat Peel je ook weten wanneer je schijf bijna vol is."
+ "value" : "Laat je weten wanneer er nieuwe updates voor je apps zijn en wanneer een Homebrew-upgrade is voltooid of tegen een probleem aanloopt. Als 'Houd prullenmand in de gaten' is ingeschakeld in Instellingen, laat Peel je ook weten wanneer je zelf een app naar de prullenmand verplaatst, zodat je kunt opruimen wat die heeft achtergelaten. Is 'Waarschuw als de schijf bijna vol is' ingeschakeld, dan laat Peel je ook weten wanneer je schijf bijna vol is."
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Informuje, gdy Twoje aplikacje mają nowe uaktualnienia. Gdy w Ustawieniach jest włączona opcja „Obserwuj Kosz”, informuje też, gdy samodzielnie przeniesiesz aplikację do Kosza, aby można było pozbyć się także tego, co po sobie pozostawiła. Gdy jest włączona opcja „Ostrzegaj, gdy dysk jest prawie pełny”, informuje też o tym."
+ "value" : "Informuje, gdy Twoje aplikacje mają nowe uaktualnienia oraz gdy uaktualnianie w Homebrew zakończy się lub napotka problem. Gdy w Ustawieniach jest włączona opcja „Obserwuj Kosz”, informuje też, gdy samodzielnie przeniesiesz aplikację do Kosza, aby można było pozbyć się także tego, co po sobie pozostawiła. Gdy jest włączona opcja „Ostrzegaj, gdy dysk jest prawie pełny”, informuje też o tym."
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Avisa quando os seus apps têm novas atualizações. Com “Monitorar o Lixo” ativado nos Ajustes, também avisa quando você mesmo move um app para o Lixo, para que você possa limpar o que ele deixou para trás. Com “Avisar quando o disco estiver quase cheio” ativado, também avisa quando o disco está quase cheio."
+ "value" : "Avisa quando os seus apps têm novas atualizações e quando um upgrade do Homebrew termina ou encontra um problema. Com “Monitorar o Lixo” ativado nos Ajustes, também avisa quando você mesmo move um app para o Lixo, para que você possa limpar o que ele deixou para trás. Com “Avisar quando o disco estiver quase cheio” ativado, também avisa quando o disco está quase cheio."
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Vă anunță când aplicațiile dvs. au actualizări noi. Cu „Urmăriți Coșul” activat în Configurări, vă anunță și când mutați chiar dvs. o aplicație în Coș, ca să puteți elimina ce a lăsat în urmă. Cu „Avertizați când discul este aproape plin” activat, vă anunță și acest lucru."
+ "value" : "Vă anunță când aplicațiile dvs. au actualizări noi și când un upgrade Homebrew se termină sau întâmpină o problemă. Cu „Urmăriți Coșul” activat în Configurări, vă anunță și când mutați chiar dvs. o aplicație în Coș, ca să puteți elimina ce a lăsat în urmă. Cu „Avertizați când discul este aproape plin” activat, vă anunță și acest lucru."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Сообщает, когда для Ваших приложений выходят обновления. Если в Настройках включен параметр «Следить за Корзиной», также сообщает, когда Вы сами перемещаете приложение в Корзину, чтобы Вы могли удалить его остатки. Если включен параметр «Предупреждать, когда диск почти заполнен», сообщает и об этом."
+ "value" : "Сообщает, когда для Ваших приложений выходят обновления, а также когда Homebrew завершает обновление или сталкивается с проблемой. Если в Настройках включен параметр «Следить за Корзиной», также сообщает, когда Вы сами перемещаете приложение в Корзину, чтобы Вы могли удалить его остатки. Если включен параметр «Предупреждать, когда диск почти заполнен», сообщает и об этом."
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Talar om när dina appar har nya uppdateringar. När ”Bevaka papperskorgen” är på i Inställningar får du också veta när du själv flyttar en app till papperskorgen, så att du kan rensa bort det som den lämnade kvar. När ”Varna när skivan är nästan full” är på får du också veta det."
+ "value" : "Talar om när dina appar har nya uppdateringar och när en Homebrew-uppgradering blir klar eller stöter på ett problem. När ”Bevaka papperskorgen” är på i Inställningar får du också veta när du själv flyttar en app till papperskorgen, så att du kan rensa bort det som den lämnade kvar. När ”Varna när skivan är nästan full” är på får du också veta det."
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Uygulamalarınızın yeni güncellemeleri olduğunda size bildirir. Ayarlar’da “Çöp Sepeti’ni izle” açıksa, bir uygulamayı kendiniz Çöp Sepeti’ne taşıdığınızda da bildirir; böylece geride bıraktıklarını temizleyebilirsiniz. “Disk neredeyse dolduğunda uyar” açıksa, diskiniz neredeyse dolduğunda da bildirir."
+ "value" : "Uygulamalarınızın yeni güncellemeleri olduğunda ve bir Homebrew yükseltmesi bittiğinde veya bir sorunla karşılaştığında size bildirir. Ayarlar’da “Çöp Sepeti’ni izle” açıksa, bir uygulamayı kendiniz Çöp Sepeti’ne taşıdığınızda da bildirir; böylece geride bıraktıklarını temizleyebilirsiniz. “Disk neredeyse dolduğunda uyar” açıksa, diskiniz neredeyse dolduğunda da bildirir."
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Повідомляє, коли для ваших програм зʼявляються нові оновлення. Якщо в Параметрах увімкнено «Стежити за Смітником», також повідомляє, коли ви самі переміщуєте програму в Смітник, щоб ви могли вилучити те, що вона залишила по собі. Якщо увімкнено «Попереджати, коли диск майже заповнений», повідомляє й про це."
+ "value" : "Повідомляє, коли для ваших програм зʼявляються нові оновлення і коли оновлення пакетів Homebrew завершується або натрапляє на проблему. Якщо в Параметрах увімкнено «Стежити за Смітником», також повідомляє, коли ви самі переміщуєте програму в Смітник, щоб ви могли вилучити те, що вона залишила по собі. Якщо увімкнено «Попереджати, коли диск майже заповнений», повідомляє й про це."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "在你的App有新更新时通知你。如果在“设置”中打开了“监视废纸篓”,你自己将App移到废纸篓时,它也会通知你,以便你清除该App留下的文件。如果打开了“磁盘快满时发出警告”,磁盘快满时它也会通知你。"
+ "value" : "在你的App有新更新时,以及Homebrew升级完成或遇到问题时通知你。如果在“设置”中打开了“监视废纸篓”,你自己将App移到废纸篓时,它也会通知你,以便你清除该App留下的文件。如果打开了“磁盘快满时发出警告”,磁盘快满时它也会通知你。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "在你的App有新的更新項目時通知你。若在「設定」中開啟「監看垃圾桶」,當你自行將App丟到「垃圾桶」時也會通知你,讓你可以清除它留下的檔案。若開啟「磁碟幾乎已滿時發出警告」,也會在磁碟幾乎已滿時通知你。"
+ "value" : "在你的App有新的更新項目時,以及Homebrew升級完成或遇到問題時通知你。若在「設定」中開啟「監看垃圾桶」,當你自行將App丟到「垃圾桶」時也會通知你,讓你可以清除它留下的檔案。若開啟「磁碟幾乎已滿時發出警告」,也會在磁碟幾乎已滿時通知你。"
}
}
}
diff --git a/Peel/Model/FoundLastTimeStore.swift b/Peel/Model/FoundLastTimeStore.swift
index d4331258..32700cec 100644
--- a/Peel/Model/FoundLastTimeStore.swift
+++ b/Peel/Model/FoundLastTimeStore.swift
@@ -31,8 +31,8 @@ struct Looked: Equatable {
let size: SizeTotal?
}
-// What counts as found for each tool Home lists. Each is nil until the tool has looked since Peel opened, so
-// what an earlier look found stays until the tool looks again.
+// What counts as found for each tool the menu bar panel lists. Each is nil until the tool has looked since Peel
+// opened, so what an earlier look found stays until the tool looks again.
extension AppLibrary {
/// The apps with an update waiting, as the menu bar counts them, once a round of checks is over.
diff --git a/Peel/Model/HomeModel.swift b/Peel/Model/HomeModel.swift
index 1684139f..67b5d312 100644
--- a/Peel/Model/HomeModel.swift
+++ b/Peel/Model/HomeModel.swift
@@ -54,10 +54,10 @@ final class HomeModel {
case .fullDiskAccess: "Lets Peel look inside the Trash and the private folders where apps keep their data. Without it, Peel can’t find everything an app leaves behind."
case .helper: "Some leftovers sit in folders only an administrator can change. The helper moves those for Peel. macOS asks you to approve it once, in Login Items & Extensions. It belongs to the copy of Peel that installed it."
case .appManagement: "macOS stops an app from moving another developer’s app to the Trash unless you allow it. Without this, Peel can still clear an app’s files, but macOS may refuse to move the app itself."
- case .notifications: "Tells you when your apps have new updates. With “Watch the Trash” on in Settings, it also tells you when you move an app to the Trash yourself, so you can clear what it left behind. With “Warn when the disk is almost full” on, it tells you that too."
+ case .notifications: "Tells you when your apps have new updates and when a Homebrew upgrade finishes or runs into a problem. With “Watch the Trash” on in Settings, it also tells you when you move an app to the Trash yourself, so you can clear what it left behind. With “Warn when the disk is almost full” on, it tells you that too."
case .finderExtension: "Adds Uninstall with Peel to the menu you get when you Control-click an app in Finder."
case .openAtLogin: "Starts Peel when you log in. “Watch the Trash” works only while Peel is running."
- case .commandLine: "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal. Copy the install command and run it in Terminal: it asks for your password."
+ case .commandLine: "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal."
}
}
@@ -100,7 +100,6 @@ final class HomeModel {
/// The Finder extension is on, but macOS runs the one inside another copy of Peel, so this copy reads it as off.
private(set) var isFinderExtensionFromAnotherCopy = false
private let refreshes = OneRunAtATime()
- private var isReadingModelName = false
private var found: [Permission: State] = [:]
private(set) var notificationStatus: UNAuthorizationStatus = .notDetermined
private(set) var appManagement: AccessState = .unknown
@@ -122,6 +121,12 @@ final class HomeModel {
private(set) var hasChecked = false
private let frontmost: FrontmostApp
private let defaults: UserDefaults
+ private let readsFinderExtension: FinderExtensionReads
+ private let readsModelName: @Sendable () async -> String?
+ private var hasAskedForTheModelName = false
+ typealias FinderExtensionReads = (
+ isEnabled: @Sendable () async -> Bool, runsFromAnotherCopy: @Sendable () async -> Bool
+ )
/// The login item Settings switches too, so Home shows each change as it lands.
let loginItem: LoginItem
@@ -130,12 +135,19 @@ final class HomeModel {
helper: HelperModel,
loginItem: LoginItem = .ofTheMainApp(),
defaults: UserDefaults = .standard,
- frontmost: FrontmostApp = .shared
+ frontmost: FrontmostApp = .shared,
+ readsFinderExtension: FinderExtensionReads = (
+ isEnabled: { await isFinderExtensionEnabled() },
+ runsFromAnotherCopy: { await finderExtensionRunsFromAnotherCopy() }
+ ),
+ readsModelName: @escaping @Sendable () async -> String? = { await DeviceInfo.marketingName() }
) {
self.helper = helper
self.loginItem = loginItem
self.defaults = defaults
self.frontmost = frontmost
+ self.readsFinderExtension = readsFinderExtension
+ self.readsModelName = readsModelName
let stored = AccessState(stored: defaults.string(forKey: Self.appManagementKey))
appManagementAwaitsARemoval = stored == .missing
appManagement = stored == .missing ? .unknown : stored
@@ -159,6 +171,29 @@ final class HomeModel {
var needsAttention: Bool { !missingRequired.isEmpty }
+ /// What the Command Line row's note says to do, which is what its button offers and what Settings says. Nil once
+ /// the tool is on the path.
+ static func commandLineNextStep(
+ state: State, standing: CommandLineTool.Standing, place: CommandLineTool.Place
+ ) -> LocalizedStringResource? {
+ guard state != .on else { return nil }
+ switch place {
+ case .temporaryCopy:
+ return "Peel is running from a copy macOS made because it is still marked as downloaded. Move Peel to the Applications folder and open it from there."
+ case .readOnlyVolume:
+ return "Peel is running from a read-only disk, such as the disk image it came on. Move Peel to the Applications folder and open it from there."
+ case .applications, .elsewhere:
+ break
+ }
+ if state == .notThisAccount {
+ return "Putting it on the path takes an administrator, and Peel’s Settings gives a line for ~/.zshrc that runs it from this account."
+ }
+ if standing == .somethingElse {
+ return "Something else is at \(CommandLineTool.path), and Peel offers no command that would replace it."
+ }
+ return "Copy the install command and run it in Terminal: it asks for your password."
+ }
+
/// Required permissions still pending, such as a helper waiting for approval or a check that got no
/// answer. Home doesn't say "You're all set" while any remain. App Management counts only after a refusal: it is
/// often known only after the first removal.
@@ -200,9 +235,7 @@ final class HomeModel {
async let helperChecked: Void = helper.checkConnection()
notificationStatus = await UNUserNotificationCenter.current().notificationSettings().authorizationStatus
- let isFinderExtensionEnabled = await Self.isFinderExtensionEnabled()
- isFinderExtensionFromAnotherCopy =
- isFinderExtensionEnabled ? false : await Self.finderExtensionRunsFromAnotherCopy()
+ let isFinderExtensionEnabled = await readsFinderExtension.isEnabled()
let fullDisk = await access
needsRelaunchForFullDiskAccess = FullDiskAccess.offersReopen(
@@ -224,6 +257,9 @@ final class HomeModel {
]
hasChecked = true
+ // Only a word of an optional row hangs on this, and `pluginkit` can take seconds, so no row waits for it.
+ isFinderExtensionFromAnotherCopy = isFinderExtensionEnabled
+ ? false : await readsFinderExtension.runsFromAnotherCopy()
await helperChecked
// Free space is read every time, since it is how the user sees that a cleanup worked.
@@ -240,13 +276,13 @@ final class HomeModel {
return defaults.string(forKey: Self.modelNameKey + identifier)
}
- /// Reads the marketing name with `system_profiler` and saves it, when none is saved for this model yet.
+ /// Reads the marketing name with `system_profiler` and saves it, when none is saved for this model yet. It is asked
+ /// once a launch: a `system_profiler` that didn't answer would otherwise take seconds each time Peel comes forward.
private func readModelName() async {
- guard !isReadingModelName, let identifier = device?.modelIdentifier, !identifier.isEmpty, modelName == nil
+ guard !hasAskedForTheModelName, let identifier = device?.modelIdentifier, !identifier.isEmpty, modelName == nil
else { return }
- isReadingModelName = true
- defer { isReadingModelName = false }
- guard let name = await DeviceInfo.marketingName() else { return }
+ hasAskedForTheModelName = true
+ guard let name = await readsModelName() else { return }
defaults.set(name, forKey: Self.modelNameKey + identifier)
device = device?.named(name)
}
@@ -317,11 +353,11 @@ final class HomeModel {
/// Off the main thread: it waits for another process to answer.
@concurrent
- private static func isFinderExtensionEnabled() async -> Bool {
+ private nonisolated static func isFinderExtensionEnabled() async -> Bool {
FIFinderSyncController.isExtensionEnabled
}
- private static func finderExtensionRunsFromAnotherCopy() async -> Bool {
+ private nonisolated static func finderExtensionRunsFromAnotherCopy() async -> Bool {
guard let own = Bundle.main.builtInPlugInsURL.flatMap({ Bundle(url: $0.appending(path: "PeelFinder.appex")) }),
let identifier = own.bundleIdentifier
else { return false }
diff --git a/Peel/Navigation/ToolSidebar.swift b/Peel/Navigation/ToolSidebar.swift
index 07977833..07649d24 100644
--- a/Peel/Navigation/ToolSidebar.swift
+++ b/Peel/Navigation/ToolSidebar.swift
@@ -13,6 +13,8 @@ enum SidebarDestination: Hashable {
struct ToolSidebar: View {
@Environment(HomeModel.self) private var home
+ @Environment(ExclusionsStore.self) private var exclusions
+ @Environment(RemovalHistoryStore.self) private var history
@Environment(PeelUpdater.self) private var updater
@Environment(\.accessibilityReduceMotion) private var reduceMotion
@AppStorage("sidebar.apps.expanded") private var isAppsExpanded = true
@@ -225,10 +227,12 @@ struct ToolSidebar: View {
}
if tool == .home {
Spacer(minLength: 8)
+ let needsAttention = home.needsAttention
+ || MovesHeld.reason(exclusions: exclusions, history: history) != nil
AttentionBadge()
- .opacity(home.needsAttention ? 1 : 0)
- .accessibilityHidden(!home.needsAttention)
- .motion(value: home.needsAttention)
+ .opacity(needsAttention ? 1 : 0)
+ .accessibilityHidden(!needsAttention)
+ .motion(value: needsAttention)
}
}
.background {
diff --git a/Peel/Views/Home/HomePermissionsView.swift b/Peel/Views/Home/HomePermissionsView.swift
index 2e534335..d4ad6e5e 100644
--- a/Peel/Views/Home/HomePermissionsView.swift
+++ b/Peel/Views/Home/HomePermissionsView.swift
@@ -105,7 +105,7 @@ struct HomePermissionsContent: View {
.accessibilityValue(Text(status))
InfoNote(
name: String(localized: permission.title),
- detail: Text(home.detail(of: permission)),
+ detail: home.detail(of: permission),
symbol: permission.symbol,
isAlbum: true
)
@@ -144,7 +144,7 @@ struct HomePermissionsContent: View {
private func help(for permission: HomeModel.Permission) -> Text {
permission.isInSystemSettings
- ? Text("Show \(String(localized: permission.title)) in System Settings")
+ ? Text("Show \(permission.nameInSystemSettings) in System Settings")
: Text("Open Peel Settings")
}
@@ -338,14 +338,20 @@ struct HomePermissionsContent: View {
Task { helperFailure = await helper.install() }
}
case .notifications: Task { await home.requestNotifications() }
- case .fullDiskAccess, .appManagement, .finderExtension, .openAtLogin: reveal(permission)
+ case .openAtLogin:
+ if home.loginItem.needsApproval {
+ reveal(permission)
+ } else {
+ home.loginItem.set(on: true)
+ }
+ case .fullDiskAccess, .appManagement, .finderExtension: reveal(permission)
// Its `CopyButton` copies the command by itself, so `perform` is never called for it.
case .commandLine: break
}
}
}
-fileprivate extension HomeModel {
+extension HomeModel {
func status(of permission: Permission) -> LocalizedStringResource {
guard hasChecked else { return "Checking…" }
return switch (permission, state(of: permission)) {
@@ -361,6 +367,7 @@ fileprivate extension HomeModel {
}
case (.helper, .pending): "Needs approval, or was turned off"
case (.finderExtension, .off) where isFinderExtensionFromAnotherCopy: "On in another copy of Peel"
+ case (.openAtLogin, .off) where loginItem.failure != nil: "Couldn’t turn on"
case (_, .notThisAccount): "Needs an administrator"
case (.appManagement, .pending):
appManagementAwaitsARemoval ? "Checked at the next removal" : "Checked at first removal"
@@ -373,11 +380,24 @@ fileprivate extension HomeModel {
}
}
- func detail(of permission: Permission) -> LocalizedStringResource {
- guard permission == .commandLine, state(of: permission) == .notThisAccount else { return permission.detail }
- return "Lets you uninstall apps and clear leftovers, caches, and duplicates from Terminal. Putting it on the path takes an administrator, and Peel’s Settings gives a line for ~/.zshrc that runs it from this account."
+ func detail(of permission: Permission) -> Text {
+ switch permission {
+ case .helper where state(of: .helper) == .missing && helper.standing != .notAnswering
+ && helper.isRegisteredByAnotherCopy:
+ Text(helper.standing.whyItCannotAct(registeredByAnotherCopy: true))
+ case .openAtLogin where loginItem.failure != nil:
+ Text(verbatim: loginItem.failure ?? "")
+ case .commandLine:
+ Text(verbatim: [permission.detail, Self.commandLineNextStep(
+ state: state(of: permission), standing: Self.commandLineStanding, place: Self.commandLinePlace
+ )].compactMap { $0.map { String(localized: $0) } }.joined(separator: " "))
+ default:
+ Text(permission.detail)
+ }
}
+ private static let commandLinePlace = CommandLineTool.place()
+
func action(for permission: Permission) -> LocalizedStringResource? {
guard hasChecked else { return nil }
let state = state(of: permission)
@@ -396,7 +416,11 @@ fileprivate extension HomeModel {
// The optional rows open System Settings from their name, so they need no button. Notifications has
// one until Peel has asked, because macOS lists Peel under Notifications only after that.
case .notifications: return notificationStatus == .notDetermined ? "Turn On" : nil
- case .finderExtension, .openAtLogin: return nil
+ case .finderExtension: return nil
+ // macOS lists Peel under Open at Login only once it has registered, so the row turns it on, as Settings does.
+ case .openAtLogin:
+ guard state != .on, loginItem.isKnown else { return nil }
+ return loginItem.needsApproval ? "Open System Settings" : "Turn On"
// Short on purpose: every row shares the grid's button column, so a wide label here would narrow
// every row's name. The row's name says what is copied, and the note beside it explains.
case .commandLine:
@@ -411,6 +435,11 @@ extension HomeModel.Permission {
/// so its row is the one with no pane to open.
var isInSystemSettings: Bool { self != .commandLine }
+ /// What System Settings lists the setting under: macOS lists the helper as Peel itself.
+ var nameInSystemSettings: String {
+ self == .helper ? "Peel" : String(localized: title)
+ }
+
var tilt: Double {
switch self {
case .fullDiskAccess: -6
diff --git a/Peel/Views/Home/HomeView.swift b/Peel/Views/Home/HomeView.swift
index 0af2a3e3..15ad015a 100644
--- a/Peel/Views/Home/HomeView.swift
+++ b/Peel/Views/Home/HomeView.swift
@@ -107,6 +107,7 @@ struct HomeContent: View {
.motion(.touch, value: isPointingAtDevice)
.onHover { isPointingAtDevice = $0 }
.help(Text("Show About in System Settings"))
+ .accessibilityHint(Text("Show About in System Settings"))
}
/// What Peel has moved to the Trash, from the same counters the menu bar panel reads. The biggest single
diff --git a/PeelTests/HomeAppManagementTests.swift b/PeelTests/HomeAppManagementTests.swift
index 41363121..b780491a 100644
--- a/PeelTests/HomeAppManagementTests.swift
+++ b/PeelTests/HomeAppManagementTests.swift
@@ -1,6 +1,7 @@
import Foundation
@testable import Peel
import PeelCore
+import Synchronization
import Testing
@MainActor
@@ -54,4 +55,42 @@ struct HomeAppManagementTests {
#expect(!home.appManagementAwaitsARemoval)
#expect(!home.waitingRequired.contains(.appManagement))
}
+
+ @Test func theRowsDontWaitForTheQuestionAboutAnotherCopy() async throws {
+ let madeUp = try MadeUpDefaults()
+ defer { madeUp.forget() }
+ let (gate, opens) = AsyncStream.makeStream(of: Void.self)
+ let home = HomeModel(
+ helper: HelperModel(), defaults: madeUp.defaults, readsFinderExtension: (
+ isEnabled: { false },
+ runsFromAnotherCopy: {
+ for await _ in gate {}
+ return true
+ }
+ ), readsModelName: { nil }
+ )
+
+ let refresh = Task { await home.refresh() }
+ while !home.hasChecked { await Task.yield() }
+ #expect(!home.isFinderExtensionFromAnotherCopy)
+ opens.finish()
+ await refresh.value
+
+ #expect(home.isFinderExtensionFromAnotherCopy)
+ }
+
+ @Test func asksForTheMacsNameOnceALaunchWhenNothingAnswers() async throws {
+ let madeUp = try MadeUpDefaults()
+ defer { madeUp.forget() }
+ let asked = Mutex(0)
+ let home = HomeModel(helper: HelperModel(), defaults: madeUp.defaults, readsModelName: {
+ asked.withLock { $0 += 1 }
+ return nil
+ })
+
+ await home.refresh()
+ await home.refresh()
+
+ #expect(asked.withLock { $0 } == 1)
+ }
}
diff --git a/PeelTests/HomeLoginItemTests.swift b/PeelTests/HomeLoginItemTests.swift
index b2f25374..b08f1d4c 100644
--- a/PeelTests/HomeLoginItemTests.swift
+++ b/PeelTests/HomeLoginItemTests.swift
@@ -5,6 +5,13 @@ import Testing
@MainActor
struct HomeLoginItemTests {
+ private func read(_ item: LoginItem) -> HomeModel {
+ HomeModel(
+ helper: HelperModel(), loginItem: item,
+ readsFinderExtension: (isEnabled: { true }, runsFromAnotherCopy: { false }), readsModelName: { nil }
+ )
+ }
+
@Test func homeShowsWhatSettingsTurnedOn() async {
let item = LoginItem(read: { .notRegistered }) { on in
LoginItem.Answer(status: on ? .enabled : .notRegistered)
@@ -19,4 +26,40 @@ struct HomeLoginItemTests {
#expect(before == .off)
#expect(home.state(of: .openAtLogin) == .on)
}
+
+ @Test func offersToTurnOnWhatNothingElseOnHomeCan() async {
+ let item = LoginItem(read: { .notRegistered }) { on in
+ LoginItem.Answer(status: on ? .enabled : .notRegistered)
+ }
+ let home = read(item)
+ #expect(home.action(for: .openAtLogin) == nil, "Home hasn't read anything yet")
+
+ await home.refresh()
+ #expect(home.action(for: .openAtLogin) == "Turn On")
+
+ item.set(on: true)
+ while item.status != .enabled { await Task.yield() }
+ #expect(home.action(for: .openAtLogin) == nil)
+ }
+
+ @Test func sendsAnItemWaitingForApprovalToSystemSettings() async {
+ let item = LoginItem(read: { .requiresApproval }, change: { _ in LoginItem.Answer(status: .requiresApproval) })
+ let home = read(item)
+ await home.refresh()
+
+ #expect(home.action(for: .openAtLogin) == "Open System Settings")
+ }
+
+ @Test func saysWhenTurningItOnFailed() async {
+ let item = LoginItem(read: { .notRegistered }) { _ in
+ LoginItem.Answer(status: .notRegistered, error: "macOS said no")
+ }
+ let home = read(item)
+ await home.refresh()
+
+ item.set(on: true)
+ while item.failure == nil { await Task.yield() }
+
+ #expect(home.status(of: .openAtLogin) == "Couldn’t turn on")
+ }
}
diff --git a/PeelTests/HomeNotesTests.swift b/PeelTests/HomeNotesTests.swift
new file mode 100644
index 00000000..426e56c2
--- /dev/null
+++ b/PeelTests/HomeNotesTests.swift
@@ -0,0 +1,27 @@
+import Foundation
+@testable import Peel
+import PeelCore
+import Testing
+
+@MainActor
+struct HomeNotesTests {
+ @Test func theCommandLineNoteSaysWhatTheRowOffers() {
+ let next = { (state: HomeModel.State, standing: CommandLineTool.Standing, place: CommandLineTool.Place) in
+ HomeModel.commandLineNextStep(state: state, standing: standing, place: place).map { String(localized: $0) }
+ }
+
+ #expect(next(.on, .installed, .applications) == nil)
+ #expect(next(.off, .missing, .applications)?.hasPrefix("Copy the install command") == true)
+ #expect(next(.off, .otherPeel, .elsewhere)?.hasPrefix("Copy the install command") == true)
+ #expect(next(.off, .missing, .temporaryCopy)?.hasPrefix("Peel is running from a copy macOS made") == true)
+ #expect(next(.off, .missing, .readOnlyVolume)?.hasPrefix("Peel is running from a read-only disk") == true)
+ #expect(next(.notThisAccount, .missing, .temporaryCopy)?.hasPrefix("Peel is running from a copy") == true)
+ #expect(next(.notThisAccount, .missing, .applications)?.hasPrefix("Putting it on the path takes") == true)
+ #expect(next(.off, .somethingElse, .applications)?.hasPrefix("Something else is at") == true)
+ }
+
+ @Test func theHelpersPointerNoteNamesWhatSystemSettingsShows() {
+ #expect(HomeModel.Permission.helper.nameInSystemSettings == "Peel")
+ #expect(HomeModel.Permission.appManagement.nameInSystemSettings == String(localized: "App Management"))
+ }
+}