/usr/bin/xapers-adder is in xapers 0.5.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/bash -e
if [ -z "$1" ] || [[ "$1" == '--help' ]] || [[ "$1" == '-h' ]]; then
echo "usage: $(basename $0) <file.pdf>" >&2
exit 1
fi
infile="$1"
if [ ! -e "$infile" ] ;then
echo "File not found: $infile" >&2
exit 1
fi
# open the file with preferred application
xdg-open "$infile" &
# prompt for xapers import
x-terminal-emulator \
-title "xapers-adder" \
-e bash -c "
echo 'Type C-c at any time to cancel.'
xapers add --file=\"$infile\" --tags=new --prompt --view
read -N1 -p 'any key to quit:' OK
"
|