aboutsummaryrefslogtreecommitdiff
path: root/zathura
diff options
context:
space:
mode:
Diffstat (limited to 'zathura')
-rwxr-xr-xzathura6
1 files changed, 6 insertions, 0 deletions
diff --git a/zathura b/zathura
new file mode 100755
index 0000000..6441190
--- /dev/null
+++ b/zathura
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Wrapper: log file opens to fre, then exec real zathura.
+for arg in "$@"; do
+ [ -f "$arg" ] && fre --add "$(readlink -f "$arg")" 2>/dev/null
+done
+exec /usr/bin/zathura "$@"