Created
December 2, 2016 06:23
-
-
Save alexanderfefelov/383d5d96b6324f7936000133b37b431a to your computer and use it in GitHub Desktop.
Enabling telnet:// in Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo '#!/bin/sh | |
gnome-terminal -e "telnet ${1#telnet://}"' > ~/bin/telnet-handler.sh | |
chmod +x ~/bin/telnet-handler.sh | |
echo '[Desktop Entry] | |
Type=Application | |
Name=Telnet Handler | |
Exec=telnet-handler.sh %u | |
MimeType=x-scheme-handler/telnet;' > ~/.local/share/applications/telnet-handler.desktop | |
echo 'x-scheme-handler/telnet=telnet-handler.desktop' >> ~/.local/share/applications/mimeapps.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment