From d1532e33d1e702d8265be713c30a8822d726ed7f Mon Sep 17 00:00:00 2001 From: Bryan Tan Date: Sun, 21 Jun 2026 17:27:45 -0700 Subject: [PATCH] netbird: fix GUI application's XDG desktop file The PRs https://github.com/NixOS/nixpkgs/pull/496370 and https://github.com/NixOS/nixpkgs/pull/499273 updated the netbird-ui icon location in and removed Exec path from the netbird-ui wrapper, respectively. However, this resulted in a bug where the both the Icon and Exec paths pointed to non-existent files. To address the regression, this PR adjusts the desktop file for the netbird-ui wrapper to use the correct paths. (cherry picked from commit b79f6d98b3cf9d0b993e48972568df587e3477d9) --- nixos/modules/services/networking/netbird.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/netbird.nix b/nixos/modules/services/networking/netbird.nix index d7514f2360d3..c96be69162cf 100644 --- a/nixos/modules/services/networking/netbird.nix +++ b/nixos/modules/services/networking/netbird.nix @@ -340,7 +340,8 @@ in substitute ${cfg.ui.package}/share/applications/netbird.desktop \ "$out/share/applications/${mkBin "netbird"}.desktop" \ --replace-fail 'Name=Netbird' "Name=NetBird @ ${client.service.name}" \ - --replace-fail 'Icon=netbird' "Icon=${cfg.ui.package}/share/pixmaps/netbird.png" + --replace-fail 'Icon=netbird' "Icon=${cfg.ui.package}/share/icons/hicolor/256x256/apps/netbird.png" \ + --replace-fail 'Exec=netbird-ui' "Exec=${mkBin "netbird-ui"}" '') ]; };