From 326263e5e9d37ebdab6bb5b7d4ef68793e75655a Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 20 Nov 2025 08:16:27 -0500 Subject: [PATCH] feat: Adds check if zathura is open when generating pdf to prevent having 2 instances of pdf from opening. --- project/justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/justfile b/project/justfile index 9f089b2..f332e43 100644 --- a/project/justfile +++ b/project/justfile @@ -21,7 +21,7 @@ html: [group("generate")] pdf: @gum spin --title="Generating pdf..." -- bash -xc "hpa generate pdf &>/dev/null" - @xdg-open Report.pdf & + @pidof zathura &>/dev/null || xdg-open Report.pdf & # Copy files to cloud storage directory. [group("generate")]