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

VmWare Workstation 6, Linux disk expansion

Run the disk expansion command: "C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager" -x 60Gb "D:\My Virtual Machines\Centos 5.2 Test3\Red…

Set Up Mail Relay Server with CentOS

Notes from 2011...Method 1: Set this relay server to use another server as a relayyum…

Install Apache2 with PHP and Ruby on CentOS 5.2

yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl…