1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-22 20:13:43 +00:00

[MIME] Added handler for torrent files

This commit is contained in:
pgrondek 2019-05-31 00:21:19 +02:00
parent 8af83afe5b
commit 764826dd63
2 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,12 @@
#!/usr/bin/env bash #!/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/.config/mimeapps.list
sed -i '/x-scheme-handler\/magnet/d' $HOME/.local/share/applications/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 cat $(pwd)/local/share/applications/mimeapps.list >> $HOME/.local/share/applications/mimeapps.list

View File

@ -1 +1,2 @@
x-scheme-handler/magnet=torrent.desktop x-scheme-handler/magnet=torrent.desktop
application/x-bittorrent=torrent.desktop