(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;