T27: Omarchy's theme file is read twice a second and worn whenever its text changes and parses, so a file made readable again is worn; a failed check is logged once while it lasts; only a missing file means no Omarchy: one that cannot be read stops the start, and a fresh install wears Omarchy's theme unless its file is surely absent
CI / platforms (ubuntu-24.04) (push) Successful in 1m2s
CI / macos (push) Successful in 12m7s
CI / platforms (windows-latest) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-16 01:03:06 -04:00
1 parent d8ebadea2d
commit aae7fba6a9
4 files changed
+99 -49

No files matched your search

+2 -2
View File
@@ -127,10 +127,10 @@ pub fn known(id: &str) -> bool {
find(id).is_some() || (cfg!(target_os = "linux") && id == OMARCHY)
}
/// A fresh install wears Omarchy's theme where Omarchy runs.
/// A fresh install wears Omarchy's theme unless its file is surely absent.
pub fn default_id() -> &'static str {
#[cfg(target_os = "linux")]
if omarchy::path().is_some_and(|path| path.is_file()) {
if omarchy::path().is_some_and(|path| !matches!(path.try_exists(), Ok(false))) {
return OMARCHY;
}
"catppuccin-mocha"