Skip to content

Instantly share code, notes, and snippets.

@petrleocompel
Last active December 2, 2019 21:48
Show Gist options
  • Save petrleocompel/0a02785696ff02be1bb6e7463a65162e to your computer and use it in GitHub Desktop.
Save petrleocompel/0a02785696ff02be1bb6e7463a65162e to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment