Sob o GNU / Linux, é o "mimetypes" de "application" / "extension", sua facilidade em configurar alguns sobre isso, mas para iniciantes pode ser complicado
por exemplo, se você quiser configurar o protocolo "TeamSpeak 3 Server", apenas para o usuário atual você pode fazer o seguinte
1 - Install the teamspeak3 client in /opt/TeamSpeak3/Client
2 - Edit the file ~/.local/share/applications/mimeapps.list
3 - Add under [Default Applications] , the follow line
x-scheme-handler/ts3server=teamspeak.desktop
and now save the file
4 - Create the "~/.local/share/applications/teamspeak3.desktop" file , just open a text editor , add the follow lines
[Desktop Entry]
Encoding=UTF-8
Version=3
Type=Application
Terminal=false
Name=TeamSpeak
Exec=/opt/TeamSpeak3/Client/ts3client_runscript.sh %u
Path=/opt/TeamSpeak3/Client
Icon=/opt/TeamSpeak3/Icon/TeamSpeak3.png
StartupNotify=false
StartupWMClass=TeamSpeak
X-KDE-SubstituteUID=false
5 - Update the mime database of the current user , with the command line
$ update-mime-database $HOME/.local/share/mime
6 - Try to open a url with protocol for example , some like ->
ts3server://8.9.36.132?port=9112
Agora, o navegador da Web, pergunte se você deseja abrir com "TeamSpeak", se você clicar em "Abrir" a ferramenta "TeamSpeak3 Client" deve estar conectada a esse servidor.
uma breve explaniação
The Mime Protocol , its the line
x-scheme-handler/
na mesma linha, o
"ts3server="
é o protocolo da web
"ts3server://"
na mesma linha, o
teamspeak.desktop
Determine o "aplicativo" pode abrir esse protocolo
A entrada na área de trabalho
[Desktop Entry]
Encoding=UTF-8
Version=3
Type=Application
Terminal=false
Name=TeamSpeak
Exec=/opt/TeamSpeak3/Client/ts3client_runscript.sh %u
Path=/opt/TeamSpeak3/Client Icon=/opt/TeamSpeak3/Icon/TeamSpeak3.png
StartupNotify=false StartupWMClass=TeamSpeak X-KDE-SubstituteUID=false
Ok, você vê a entrada acima, a mais importante delas é
"Type" -> Should be application for this type of things
"Terminal" -> Determine if a terminal are show or not
"Name" -> The "Caption" / "Name" in the Menu of the desktop
"Exec" -> Determine the script/binary path of app
"Path" -> Determine the absolute path , with wine and dosbox cause troubles
"Icon" -> Determine the Icon of the App
Note in the Exec Line at the end exist %u without double quote
with that parameter the system can grab the
for stablish connection