1.navigate to where your desktop entries are (usually ~/.local/share/applications)
2.add the following line to your mimeapps.list
- Code: Select all
x-scheme-handler/defrag=defrag.desktop
3.create defrag.desktop in that same directory and add this to it: (modify accordingly)
- Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=YOUR-FULL-PATH-TO/ioquake3/iodfengine.x86_64 +connect $(echo '%u' | perl -pe "s/defrag:..//")
Name=defrag
Comment=ohboyilovedefrag
and after that you can click the links and they will work as expected