Fist of all need to move xdg-mime to xdg-mime.orig
mv /usr/bin/xdg-mime /usr/bin/xdg-mime.orig
then new file xdg-mime and xdg-mime.bash
#!/bin/sh | |
/bin/bash /usr/bin/xdg-mime.bash $@ |
#!/bin/bash | |
if [[ "$@" == *"x-scheme-handler/discord"* ]] || [[ "$@" == *"x-scheme-handler/spotify"* ]]; then | |
/bin/true | |
else | |
/usr/bin/xdg-mime.orig $@ | |
fi |