Fix talkkonnect status detection using systemd service file

The status check was showing "Not installed" even after successful
installation because it relied on PATH and file checks that weren't
working reliably.

Changes:
- Check for /etc/systemd/system/talkkonnect.service first
- This is the most reliable indicator of installation
- Systemd service file is created during install and requires root
- Falls back to command/file checks if service file doesn't exist

This ensures status shows correctly immediately after installation.
This commit is contained in:
Claude
2025-11-23 01:03:04 +00:00
parent f6f2202e32
commit 9a1425b137
+4 -1
View File
@@ -69,7 +69,10 @@ check_talkkonnect_status() {
local installed=false
local running=false
if command -v talkkonnect &>/dev/null || [[ -f "/home/$KIOSK_USER/go/bin/talkkonnect" ]]; then
# Check if systemd service exists (most reliable indicator)
if [[ -f /etc/systemd/system/talkkonnect.service ]] || \
command -v talkkonnect &>/dev/null || \
[[ -f "/home/$KIOSK_USER/go/bin/talkkonnect" ]]; then
installed=true
if systemctl is-active --quiet talkkonnect; then
running=true