From 4b5a0a19de94b899444d116b2b0ebdc72d82ddba Mon Sep 17 00:00:00 2001 From: Jet Date: Mon, 1 Jun 2026 16:58:43 -0700 Subject: [PATCH] fix: betterbird profiles --- home-modules/lib.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home-modules/lib.nix b/home-modules/lib.nix index 67dc43e..a3f7f8f 100644 --- a/home-modules/lib.nix +++ b/home-modules/lib.nix @@ -295,11 +295,12 @@ let profile_root="''${HOME:-${config.home.homeDirectory}}/.thunderbird" profile="$profile_root/betterbird-current" - if [ -d "$profile" ]; then - exec ${betterbird}/bin/betterbird --profile "$profile" "$@" + if [ ! -d "$profile" ]; then + echo "Betterbird profile not found: $profile" >&2 + exit 1 fi - exec ${betterbird}/bin/betterbird "$@" + exec ${betterbird}/bin/betterbird --profile "$profile" "$@" ''; }; nasaApodWallpaper = pkgs.writeShellApplication {