How To Set Gmail As Default Mail Client In Ubuntu

Many of the professionals who are linked online greatly use Gmail because for them, it is the best email provider more than any other.

If you are using Ubuntu as your operating system, you can actually make Gmail as your default client without the needs of using other software. This tutorial can help you with this.

Ubuntu Email Client Gmail

Set Gmail As Default Mail Client In Ubuntu [Tutorial]

1. First, locate the folder naming “systempreferencespreferred applications”. The provided image is the one which you will see. On it, you will see the “Mail Reader” option. Under it put this command exactly on the space provided:

/home/geek/open_mailto.sh %s

2. Now. After putting the command, you will now need to download the shell script and embed it on the user directory “/home/username”. Here’s the link for the complete shell script: Download Shell Script

3. The shell script contains vital information which will instruct your Ubuntu OS to allow Gmail as your default client automatically without the needs of using other software. Here is the command inside that script:

#!/bin/sh

firefox https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ‘s/mailto://’`

4. As a Gmail user, you may have to do some multitasking and opening your Gmail account on a new tab using your Firefox browser is helpful. With this, you will just need to replace the shell script with this command:

firefox -remote “openurl(https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ‘s/mailto://’`,new-tab)”

5. If you want to hide the script by default, you can just put “.” at the start of the file name. it should look like this: “.open_mailto.sh.” Do not forget to change the path of preferences as it is greatly needed.

6. Now, to make the script usable and executable, use this script and type it as a command on a terminal:

chmod u+x ~/open_mailto.sh

This tutorial has been proven to be working for all Ubuntu OS. Just make sure to copy the exact shell script to make it work.

However, for some cases, there are tendencies that you are not automatically logged on to your account making this shell script fail to work. Make sure that you have allowed your computer to remember your username and password.

(Visited 253 times, 35 visits today)

Speak Your Mind

*