From a5e71db5777ee0ae2428c1535edc077d8e2e87f7 Mon Sep 17 00:00:00 2001 From: riccardom Date: Wed, 29 Jul 2026 14:33:24 +0200 Subject: [PATCH] Logs on fallback ui preferences --- client/ui/preferences/store.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/ui/preferences/store.go b/client/ui/preferences/store.go index df6fbbb16..c5fd37f03 100644 --- a/client/ui/preferences/store.go +++ b/client/ui/preferences/store.go @@ -246,6 +246,11 @@ func (s *Store) ExistedAtLoad() bool { func (s *Store) load() error { if _, err := os.Stat(s.path); err != nil { if errors.Is(err, os.ErrNotExist) { + // Log the resolved path: a surprising directory here (e.g. + // /var/root/... when the GUI was launched with a stale HOME + // from a root installer) is the difference between a genuine + // first run and prefs silently read from the wrong place. + log.Infof("no ui preferences file at %s; using defaults", s.path) return nil } return fmt.Errorf("stat preferences: %w", err)