Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoernSchoenyan/bc5ccc34f3a45e7701cc93d536e13c25 to your computer and use it in GitHub Desktop.
Save JoernSchoenyan/bc5ccc34f3a45e7701cc93d536e13c25 to your computer and use it in GitHub Desktop.
### /usr/share/applications/callto-handler-snom.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/bin/callto-handler-snom.sh %u
Name=Callto handler for Snom
Comment=
Icon=
Categories=Application;Network;
MimeType=x-scheme-handler/callto;
### /usr/bin/callto-handler-snom.sh (evtl ein bisschen ausschmücken, damit user, password und IP aus einer Config ausgelesen werden?)
#!/bin/sh
/usr/bin/wget -qO- http://user:password@192.168.178.x/command.htm?number=$1 &> /dev/null
### diese beiden Befehle von Hand ausführen (oder in die postinst, falls man ein korrektes Debianpaket dafür bauen möchte)
/usr/bin/update-desktop-database
xdg-mime --mode system default callto-handler-snom.desktop x-scheme-handler/callto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment