feat: Adds check if zathura is open when generating pdf to prevent having 2 instances of pdf from opening.
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user