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
This commit is contained in:
4 files changed
+99
-49
No files matched your search
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user