This file is indexed.

/usr/bin/xapers-adder is in xapers 0.8.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash -e

if [ -z "$1" ] || [[ "$1" == '--help' ]] || [[ "$1" == '-h' ]]; then
    echo "usage: $(basename $0) [--noterm] <file.pdf>" >&2
    exit 1
fi

if [[ "$1" == '--noterm' ]]; then
    term=false
    shift
else
    term=true
fi

infile="$1"

if [ ! -e "$infile" ] ;then
    echo "File not found: $infile" >&2
    exit 1
fi

# open the file with preferred application
nohup xdg-open "$infile" &>/dev/null &

cmd="
echo 'Xapers-adder'
echo '============'
echo 'Type C-c at any time to cancel...'
echo
while ! xapers add --file=\"$infile\" --tags=new --prompt --view; do
    read -N1 -p 'ENTER to try again, or C-c to quit:' OK
done
"

if [[ "$term" == 'true' ]] ; then
    exec x-terminal-emulator \
	-T "xapers-adder" \
	-e bash -c "$cmd"
else
    eval "$cmd"
fi