package syncthing import ( "os" "os/exec" "git.davoryn.de/calic/syncwarden/internal/config" ) // DownloadURL is the official Syncthing downloads page. const DownloadURL = "https://syncthing.net/downloads/" // IsInstalled returns true if Syncthing appears to be installed. // It checks both PATH and the existence of a Syncthing config file. func IsInstalled() bool { if _, err := exec.LookPath("syncthing"); err == nil { return true } if _, err := os.Stat(config.SyncthingConfigPath()); err == nil { return true } return false }