config/install-mime.sh
2019-05-31 00:21:19 +02:00

13 lines
429 B
Bash
Executable File

#!/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