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

How to Install NFS Server on Ubuntu 21.04

Installing NFS Server # Include prerequisites sudo apt update -y # Run updates prior to…

How To Use NXLog On A Windows Client

Step 1: Setup Server - Install a log aggregation server is out of scope of…

Linux: How to Check Graphics Card Memory

List all the PCI devices: lspci # Sample Outout:root@kim-linux:/home/kim# lspci00:00.0 Host bridge: Intel Corporation Device…