Commit 4253d3a2 authored by intrigeri's avatar intrigeri
Browse files

Configure Seahorse's file associations without modifying /etc/gnome/defaults.list.

It feels more maintainable to use a standalone file, than to patch an existing
one in /etc.

refs: #10943
parent 92f414f7
#!/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 https://bugs.freedesktop.org/show_bug.cgi?id=93656
# (Tails#10889, Tails#10571)
echo 'application/pgp-keys=seahorse-pgp-keys.desktop' \
>> "$defaults_file"
echo 'application/x-iwork-keynote-sffkey=seahorse-pgp-keys.desktop' \
>> "$defaults_file"
fi
[Default Applications]
# XXX: Stretch -- this fixes https://bugs.freedesktop.org/show_bug.cgi?id=93656
# (Tails#10889, Tails#10571)
application/pgp-keys=seahorse-pgp-keys.desktop
application/x-iwork-keynote-sffkey=seahorse-pgp-keys.desktop
x-scheme-handler/mailto=icedove.desktop
[Added Associations]
application/pgp-keys=seahorse-pgp-keys.desktop
application/x-iwork-keynote-sffkey=seahorse-pgp-keys.desktop
x-scheme-handler/mailto=icedove.desktop;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment