From 51f4a53a40a83f406916298a448f787773887b76 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 22 Mar 2026 07:27:12 -0700 Subject: [PATCH] Add taffybar startup tray diagnostics --- dotfiles/config/taffybar/flake.lock | 8 ++++---- dotfiles/config/taffybar/log-levels.yaml | 6 ++++-- dotfiles/config/taffybar/taffybar | 2 +- nixos/flake.lock | 8 ++++---- nixos/taffybar.nix | 8 +++++++- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/dotfiles/config/taffybar/flake.lock b/dotfiles/config/taffybar/flake.lock index 4af12c30..698cac40 100644 --- a/dotfiles/config/taffybar/flake.lock +++ b/dotfiles/config/taffybar/flake.lock @@ -288,11 +288,11 @@ "xmonad-contrib": "xmonad-contrib" }, "locked": { - "lastModified": 1774123726, - "narHash": "sha256-3tnAdYVLry1FDOyRQo2rmsjTnLAysVRNSCX51jg3YpY=", + "lastModified": 1774189605, + "narHash": "sha256-FCeWzFk+h39fkxKKH1hKGhTMk9WB/Xldo8u/8MaxUzg=", "ref": "refs/heads/master", - "rev": "84edf9c8ffdeb1edadb74af707b20c4e313ccc1b", - "revCount": 2267, + "rev": "f628c4e7298207aeb6dbb86467368bddb7d205e6", + "revCount": 2268, "type": "git", "url": "file:///home/imalison/dotfiles/dotfiles/config/taffybar/taffybar" }, diff --git a/dotfiles/config/taffybar/log-levels.yaml b/dotfiles/config/taffybar/log-levels.yaml index 3bdcfd5c..e3eac692 100644 --- a/dotfiles/config/taffybar/log-levels.yaml +++ b/dotfiles/config/taffybar/log-levels.yaml @@ -9,7 +9,9 @@ # Example (uncomment as-needed): # System.Taffybar.DBus.Toggle: DEBUG # Graphics.UI.GIGtkStrut: DEBUG -StatusNotifier.Tray: INFO -StatusNotifier.Host.Service: INFO +# Temporary startup debugging for tray duplication. +StatusNotifier.Tray: DEBUG +StatusNotifier.Host.Service: DEBUG +System.Taffybar.Widget.SNITray.PrioritizedCollapsible: DEBUG System.Taffybar.LogLevels: INFO System.Taffybar.Context: DEBUG diff --git a/dotfiles/config/taffybar/taffybar b/dotfiles/config/taffybar/taffybar index 84edf9c8..f628c4e7 160000 --- a/dotfiles/config/taffybar/taffybar +++ b/dotfiles/config/taffybar/taffybar @@ -1 +1 @@ -Subproject commit 84edf9c8ffdeb1edadb74af707b20c4e313ccc1b +Subproject commit f628c4e7298207aeb6dbb86467368bddb7d205e6 diff --git a/nixos/flake.lock b/nixos/flake.lock index 3ec31232..ea9454dd 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -2007,11 +2007,11 @@ ] }, "locked": { - "lastModified": 1774123726, - "narHash": "sha256-3tnAdYVLry1FDOyRQo2rmsjTnLAysVRNSCX51jg3YpY=", + "lastModified": 1774189605, + "narHash": "sha256-FCeWzFk+h39fkxKKH1hKGhTMk9WB/Xldo8u/8MaxUzg=", "ref": "refs/heads/master", - "rev": "84edf9c8ffdeb1edadb74af707b20c4e313ccc1b", - "revCount": 2267, + "rev": "f628c4e7298207aeb6dbb86467368bddb7d205e6", + "revCount": 2268, "type": "git", "url": "file:///home/imalison/dotfiles/dotfiles/config/taffybar/taffybar" }, diff --git a/nixos/taffybar.nix b/nixos/taffybar.nix index 5977ef7f..beda3771 100644 --- a/nixos/taffybar.nix +++ b/nixos/taffybar.nix @@ -58,7 +58,13 @@ makeEnable config "myModules.taffybar" false { enable = true; package = inputs.imalison-taffybar.defaultPackage.${pkgs.stdenv.hostPlatform.system}; }; - systemd.user.services.taffybar.Service.ExecCondition = "${skipTaffybarInKde}"; + systemd.user.services.taffybar.Service = { + ExecCondition = "${skipTaffybarInKde}"; + # Temporary startup debugging: keep a plain-text log outside journald so + # the next login/startup leaves easy-to-inspect tray traces behind. + StandardOutput = "append:/tmp/taffybar-service.log"; + StandardError = "append:/tmp/taffybar-service.log"; + }; } ]; }