From e6c76e636efe4e5e346e6b2e401ef453bd9a17d0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 00:07:01 +0000 Subject: [PATCH 1/2] Initial plan From 314123fcd887f4d3d1055e4e8479c0e752df978b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 00:08:13 +0000 Subject: [PATCH 2/2] fix: use stable profile dir and GNOME hints in hub-brave-wrapper Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/005f3030-3821-4677-8744-f76770fbbc25 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/core/sovran-hub.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/core/sovran-hub.nix b/modules/core/sovran-hub.nix index f6600e4..15fc6c0 100644 --- a/modules/core/sovran-hub.nix +++ b/modules/core/sovran-hub.nix @@ -211,11 +211,16 @@ let fi ''; - # ── Brave launcher wrapper: isolated temp profile, cleaned up on exit ─ + # ── Brave launcher wrapper: stable profile dir so Wayland app_id is + # deterministic and GNOME Shell can match the window to the .desktop + # entry (fixes generic gear icon appearing in the dock). hub-brave-wrapper = pkgs.writeShellScript "sovran-hub-brave.sh" '' export PATH="${lib.makeBinPath [ pkgs.brave pkgs.coreutils ]}:$PATH" - HUB_DATA="$(mktemp -d -t sovran-hub-brave.XXXXXXXXXX)" + HUB_DATA="/tmp/sovran-hub-brave-$(id -u)" + mkdir -p "$HUB_DATA" trap '[ -n "$HUB_DATA" ] && rm -rf "$HUB_DATA"' EXIT INT TERM + export BAMF_DESKTOP_FILE_HINT="${sovran-hub-web}/share/applications/sovran-hub.desktop" + export GIO_LAUNCHED_DESKTOP_FILE="${sovran-hub-web}/share/applications/sovran-hub.desktop" brave --app=http://localhost:8937 \ --class=sovran-hub \ --user-data-dir="$HUB_DATA" \