fifo logs

This commit is contained in:
2025-08-20 14:19:12 +02:00
parent 83d6aa10cb
commit fb5d408a01
8 changed files with 202 additions and 53 deletions

View File

@@ -4,11 +4,13 @@ import (
"encoding/json"
"fmt"
"os"
"os/exec"
"strings"
"time"
"git.blackforestbytes.com/BlackForestBytes/goext/cryptext"
"git.blackforestbytes.com/BlackForestBytes/goext/exerr"
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"git.blackforestbytes.com/BlackForestBytes/goext/timeext"
"github.com/shirou/gopsutil/v3/process"
)
@@ -68,7 +70,7 @@ func (app *Application) saveState(eTag string, lastModified time.Time, checksum
}
if app.trayItemChecksum != nil {
app.trayItemChecksum.SetTitle(fmt.Sprintf("Checksum: %s", checksum))
app.trayItemChecksum.SetTitle(fmt.Sprintf("Checksum: %s", langext.StrLimit(checksum, 16, "")))
}
if app.trayItemETag != nil {
app.trayItemETag.SetTitle(fmt.Sprintf("ETag: %s", eTag))
@@ -109,3 +111,8 @@ func (app *Application) isKeepassRunning() bool {
return false
}
func commandExists(cmd string) bool {
_, err := exec.LookPath(cmd)
return err == nil
}