diff --git a/install-mime.sh b/install-mime.sh index 2ae2576..ab78519 100755 --- a/install-mime.sh +++ b/install-mime.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash +set -x + sed -i '/x-scheme-handler\/magnet/d' $HOME/.config/mimeapps.list sed -i '/x-scheme-handler\/magnet/d' $HOME/.local/share/applications/mimeapps.list +sed -i '/application\/x-bittorrent/d' $HOME/.config/mimeapps.list +sed -i '/application\/x-bittorrent/d' $HOME/.local/share/applications/mimeapps.list + cat $(pwd)/local/share/applications/mimeapps.list >> $HOME/.local/share/applications/mimeapps.list diff --git a/local/share/applications/mimeapps.list b/local/share/applications/mimeapps.list index 54a0bf8..ffed87b 100755 --- a/local/share/applications/mimeapps.list +++ b/local/share/applications/mimeapps.list @@ -1 +1,2 @@ x-scheme-handler/magnet=torrent.desktop +application/x-bittorrent=torrent.desktop