Make Calls a protocol handler for tel: protocol
The tel URI
The tel: URL is defined in RFC 3966.
Example: tel:+33123456789
Declare an App as Handling tel URIs
To register an application as handling tel URIs, declare it as handling the x-scheme-handler/tel MIME type in its desktop entry.
[Desktop Entry]
MimeType=x-scheme-handler/tel;
Open a URI With Another Application
#include <gio/gio.h>
int
main (int argc,
char *argv[])
{
GError *error = NULL;
g_app_info_launch_default_for_uri ("tel:+33123456789", NULL, &error);
if (error != NULL) {
g_error ("%s", error->message);
g_clear_error (&error);
return 1;
}
return 0;
}