Compare commits
3 Commits
06dd84d3a3
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c206d78ce7 | |||
|
1a27dbde4e
|
|||
|
ad7a1f15b3
|
+8
-2
@@ -585,9 +585,15 @@ check_deps() {
|
||||
_check "python3-pyqt6" "python3 -c 'import PyQt6.QtDBus' 2>/dev/null" "KDE color picker interface" 0
|
||||
_check "jq" "command -v jq >/dev/null" "JSON output and data parsing" 1
|
||||
_check "curl" "command -v curl >/dev/null" "Fetching color names from API" 0
|
||||
_check "wl-clipboard / xclip" "command -v wl-copy >/dev/null || command -v xclip >/dev/null" "System clipboard integration" 0
|
||||
if ! command -v wl-copy >/dev/null 2>&1 && command -v xclip >/dev/null 2>&1; then
|
||||
if command -v wl-copy >/dev/null 2>&1 && command -v xclip >/dev/null 2>&1; then
|
||||
printf " ${GREEN}✔${RESET} %-25s ${DIM}%s${RESET}\n" "wl-clipboard / xclip" "System clipboard integration"
|
||||
elif command -v wl-copy >/dev/null 2>&1; then
|
||||
printf " ${GREEN}✔${RESET} %-25s ${DIM}%s${RESET}\n" "wl-clipboard" "System clipboard integration"
|
||||
elif command -v xclip >/dev/null 2>&1; then
|
||||
printf " ${YELLOW}✔${RESET} %-25s ${DIM}%s${RESET}\n" "xclip" "System clipboard integration"
|
||||
printf " ${YELLOW} └─ xclip found but wl-clipboard is missing — xclip operates through XWayland and may be unreliable on Wayland${RESET}\n"
|
||||
else
|
||||
printf " ${YELLOW}⚠${RESET} %-25s ${DIM}%s${RESET}\n" "wl-clipboard / xclip" "System clipboard integration"
|
||||
fi
|
||||
_check "libnotify" "command -v notify-send >/dev/null" "Desktop notifications" 0
|
||||
_check "ImageMagick" "command -v magick >/dev/null || command -v convert >/dev/null" "Color swatches in notifications" 0
|
||||
|
||||
+1
-1
@@ -259,7 +259,7 @@ fi
|
||||
|
||||
# 16. Uninstall — removes installed files, config is kept in non-interactive mode
|
||||
it "uninstalls installed files (keeps config)"
|
||||
uninstall_out=$("$COLOR_TOOL" --uninstall 2>&1)
|
||||
uninstall_out=$("$COLOR_TOOL" --uninstall </dev/null 2>&1)
|
||||
if [[ ! -e "$HOME/.local/bin/color-tool" ]] &&
|
||||
[[ ! -L "$HOME/.local/bin/color-tool" ]] &&
|
||||
[[ ! -d "$XDG_DATA_HOME/color-tool" ]] &&
|
||||
|
||||
Reference in New Issue
Block a user