# Prevent gnome-keyring-daemon from filling up the disk with thousands of
# temp files: https://bugzilla.gnome.org/show_bug.cgi?id=730587
# TODO: put an upper limit to the version when the bug is solved upstream.

if [ -x /usr/bin/gnome-keyring-daemon ] &&
    [ $({ echo '3.10'; gnome-keyring-daemon --version | awk \
    '/gnome-keyring-daemon/ { print $2 }';} | sort -V | head -n 1) = "3.10" ]
then
    chmod -x /usr/bin/gnome-keyring-daemon
fi
