59-file_associations 409 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -eu

echo "Configuring file associations"

defaults_file=/etc/gnome/defaults.list

if grep -E '^application/pgp-keys=' "$defaults_file"; then
    echo "application/pgp-keys is already configured in $defaults_file" >&2
    exit 1
else
   # XXX: Stretch -- this fixes Tails#10571, unreproducible on non-Tails sid
   echo 'application/pgp-keys=seahorse-pgp-keys.desktop' \
15
	>> "$defaults_file"
16
fi