Add omarchy-doctor checks

This commit is contained in:
Ryan Hughes
2025-09-28 00:45:37 -04:00
parent 57a977a51d
commit 9dcc6f0aec
14 changed files with 321 additions and 165 deletions

View File

@@ -1,6 +1,5 @@
#!/bin/bash
OMARCHY_DESCRIPTION="Icons"
# Installation function
omarchy_install() {
# Copy all bundled icons to the applications/icons directory
ICON_DIR="$HOME/.local/share/applications/icons"
@@ -8,12 +7,9 @@ omarchy_install() {
cp ~/.local/share/omarchy/applications/icons/*.png "$ICON_DIR/"
}
# Verification function
omarchy_verify() {
# Check if icons directory exists
[[ -d "$HOME/.local/share/applications/icons" ]] || add_error "Icons directory missing"
# Check if any icons were copied
local icon_count=$(find "$HOME/.local/share/applications/icons" -name "*.png" 2>/dev/null | wc -l)
[[ $icon_count -gt 0 ]] || add_error "No icons found in icons directory"
}
}