Created
August 27, 2018 12:46
-
-
Save JoernSchoenyan/bc5ccc34f3a45e7701cc93d536e13c25 to your computer and use it in GitHub Desktop.
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
### /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