grep 'MimeType' /usr/share/applications/transmission-gtk.desktop
xdg-mime default deluge.desktop x-scheme-handler/magnet
xdg-mime default deluge.desktop application/x-bittorrent
grep -i deluge ~/.local/share/applications/*

bron

- Harold de Bruijn