From ee13a88492cd3009df64f9e133dc96907e8a6007 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 16 Jul 2024 14:21:30 +0800 Subject: [PATCH] lib: update output name for XDG component builders --- lib/builders.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builders.nix b/lib/builders.nix index 2e16a471..7127ad9f 100644 --- a/lib/builders.nix +++ b/lib/builders.nix @@ -13,7 +13,7 @@ defaultApplications ? { }, }: pkgs.writeTextFile { - name = "xdg-mime-associations"; + name = "xdg-mime-associations${lib.optionalString (desktopName != "") "-${desktopName}"}"; text = # Non-desktop-specific mimeapps.list are only allowed to specify # default applications. @@ -35,7 +35,7 @@ config, }: pkgs.writeTextFile { - name = "xdg-portal-config-${desktopName}"; + name = "xdg-portal-config${lib.optionalString (desktopName != "common") "-${desktopName}"}"; text = lib.generators.toINI { } config; destination = "/share/xdg-desktop-portal/${lib.optionalString (desktopName != "common") "${desktopName}-"}portals.conf"; };