Posted On November 21, 2021

Linux: How To Create XDG-MIME Association for Google Voice in Unbuntu

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Linux: How To Create XDG-MIME Association for Google Voice in Unbuntu

Google Voice is a great application that is available on IOS and Android. However, it is lacking a Desktop application version that could be installed on mainstream Linux and Windows (that I know of). Hence, I’ve devised this workaround to associate Google Voice as an xdg-mime type association that could be invoked while browsing Internet websites that feature clickable telephone numbers. Here are the commands for your convenience:

# Change running context as root
sudo su

# Create a desktop file
cat << EOF > /usr/share/applications/gv-tel.desktop
[Desktop Entry]
Name=gv tel
Comment=Google Voice telephone application shortcut
Exec=bash -c 'xdg-open "https://voice.google.com/u/0/calls?a=nc,%2B${0//tel:/}"' %u
Icon=/usr/share/icons/Humanity/apps/32/vinagre.svg
Terminal=false
Type=Application
Categories=Utility
Actions=
MimeType=x-scheme-handler/tel;
EOF

# Exit root context
exit

# Change xdg-open default in the context of the current user - this is important!
xdg-mime default gv-tel.desktop x-scheme-handler/tel

# validate
xdg-mime query default x-scheme-handler/tel

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Installing Kubernetes on CentOS 8.1

Step 1: Preparing All Nodes # Installing prerequisites # Update before installation sudo su yum…

Linux: How to Change Hostname

There are 3 methods:1. hostnamectl command : using systemctl (recommended and shown at the bottom…

Linux: how to bypass login keyring prompts

Error Message:  Something along the line of 'keyring default keyring but it is locked' Resolution:…