From 764826dd6355114b94d34a0507fb9e2f43642235 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Fri, 31 May 2019 00:21:19 +0200 Subject: [PATCH] [MIME] Added handler for torrent files --- install-mime.sh | 5 +++++ local/share/applications/mimeapps.list | 1 + 2 files changed, 6 insertions(+) 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