feat: Adds check if zathura is open when generating pdf to prevent having 2 instances of pdf from opening.

This commit is contained in:
2025-11-20 08:16:27 -05:00
parent dc583c6448
commit 326263e5e9

View File

@@ -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")]