From 8af83afe5bed6a65a1cfc8bcc7c8c671ae4662b6 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Fri, 31 May 2019 00:07:51 +0200 Subject: [PATCH] Added mime instalation --- install-mime.sh | 7 +++++++ install.sh | 4 ---- local/share/applications/mimeapps.list | 3 +-- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100755 install-mime.sh diff --git a/install-mime.sh b/install-mime.sh new file mode 100755 index 0000000..2ae2576 --- /dev/null +++ b/install-mime.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +sed -i '/x-scheme-handler\/magnet/d' $HOME/.config/mimeapps.list +sed -i '/x-scheme-handler\/magnet/d' $HOME/.local/share/applications/mimeapps.list + +cat $(pwd)/local/share/applications/mimeapps.list >> $HOME/.local/share/applications/mimeapps.list + diff --git a/install.sh b/install.sh index 8e562e0..bbed85d 100755 --- a/install.sh +++ b/install.sh @@ -21,13 +21,9 @@ ln -s $(pwd)/bashrc $HOME/.bashrc ln -s $(pwd)/bash_aliases $HOME/.bash_aliases ln -s $(pwd)/ideavimrc $HOME/.ideavimrc ln -s $(pwd)/i3-config $HOME/.config/i3/config -ln -s $(pwd)/i3status.conf $HOME/.i3status.conf ln -s $(pwd)/i3blocks $HOME/.config/i3blocks ln -s $(pwd)/dunstrc $HOME/.config/dunst/dunstrc ln -s $(pwd)/bin/lock $HOME/bin/lock ln -s $(pwd)/bin/transmission-add $HOME/bin/transmission-add ln -s $(pwd)/local/share/applications/torrent.desktop $HOME/.local/share/applications/torrent.desktop - -# Gnome -# dconf load /org/gnome/desktop/ < gnome/desktop.txt diff --git a/local/share/applications/mimeapps.list b/local/share/applications/mimeapps.list index 7989b31..54a0bf8 100755 --- a/local/share/applications/mimeapps.list +++ b/local/share/applications/mimeapps.list @@ -1,2 +1 @@ -[Default Applications] -x-scheme-handler/magnet=torrent.desktop; +x-scheme-handler/magnet=torrent.desktop