X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=evince_annot;h=8c66a1829362f7983b7baf3e151944b950097660;hb=dcce90e77c92202b5fadca48de6fd1cefc41ff79;hp=65cd452d9c77695f06d645ba695cd73851257ce1;hpb=833ad38c38d8cd6ee48469635d740f112d01fd49;p=bin.git diff --git a/evince_annot b/evince_annot index 65cd452..8c66a18 100755 --- a/evince_annot +++ b/evince_annot @@ -22,12 +22,16 @@ fi; (cd "$TMPDIR/b" chmod u+w "file.pdf" - ## evince really should just use the same document-directory - gsettings set org.gnome.Evince document-directory "'file://$TMPDIR/b'"; - evince "file.pdf" + if which okular > /dev/null 2>&1; then + okular "file.pdf" + else + ## evince really should just use the same document-directory + gsettings set org.gnome.Evince document-directory "'file://$TMPDIR/b'"; + evince "file.pdf" + fi; ); -if !cmp "$TMPDIR/b/file.pdf" "$TMPDIR/c/file.pdf"; then +if ! cmp "$TMPDIR/b/file.pdf" "$TMPDIR/c/file.pdf"; then (cd "$TMPDIR"; diff -Nura a b ) | qprint --encode --binary > "$ANNOT_FILE" fi;