Installer symlinks key commands to /usr/bin (dns, menu, shell, theme, capture, lock)
swadhinbiswas committed 2 months ago
25122aa
1 parent d3a1361
commit 25122aa
1 file changed
+10 -0
Showing 1 changed file+10-0
▼install.sh
+10-0
| @@ -150,6 +150,16 @@ log "Writing /etc/environment.d/10-de-omarchy.conf" | ||
150 | 150 | sudo mkdir -p /etc/environment.d |
151 | 151 | printf 'OMARCHY_PATH=%s\n' "$RUNTIME" | sudo tee /etc/environment.d/10-de-omarchy.conf >/dev/null |
152 | 152 | |
153 | +# Symlink key commands into /usr/bin so sudo/polkit can find them (omarchy-dns | |
154 | +# requires root, and the shell IPC commands need to be on the system PATH). | |
155 | +log "Symlinking key commands to /usr/bin" | |
156 | +for cmd in omarchy-dns omarchy-menu omarchy-shell omarchy-theme-set omarchy-theme-list \ | |
157 | + omarchy-theme-bg-set omarchy-theme-bg-next omarchy-theme-refresh \ | |
158 | + omarchy-capture-screenshot omarchy-capture-region omarchy-capture-text \ | |
159 | + omarchy-system-lock omarchy-restart-shell; do | |
160 | + [[ -f "$RUNTIME/bin/$cmd" ]] && sudo ln -sf "$RUNTIME/bin/$cmd" "/usr/bin/$cmd" 2>/dev/null | |
161 | +done | |
162 | + | |
153 | 163 | # ---------------------------------------------------------------------------- |
154 | 164 | # 5. User config hooks (additive only) |
155 | 165 | # ---------------------------------------------------------------------------- |
156 | 166 | |