Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to make Gmail open a small compose window on the actual site containing the mailto-link, instead of opening a new tab. I don't even know if this is possible. My setup makes searching for answers more difficult than I expected.

I am running Ubuntu 12.10 with Chromium. To make Gmail as my default mail-client, I had to install Gnome Gmail. This works just fine except the mentioned problem. I can't find any conf-file for Gnome Gmail, but I'm surprised if it does not exist.


Updated after user176315's help:

Changing

webbrowser.open_new_tab(gmailurl)

to

webbrowser.open_new(gmailurl)

in /usr/bin/gnome-gmail only resulted in gmail opening the mailto-link in the same window. Python's documentation on webrowser.open_new() says:

Open url in a new window of the default browser, if possible, otherwise, open url in the only browser window.

I also tried

webbrowser.open(gmailurl, new=1)

but this did the same as open_new(gmailurl)

It kinda feels like Chromium is not supported by Pyhton in some way.

share|improve this question

GNOME Gmail configuration information is stored in gconf, soon to be dconf. Tab/new window behavior is not a configuration parameter. There is no other configuration file.

You could modify the /usr/bin/gnome-gmail script to open the compose screen as a new window.

Change

webbrowser.open_new_tab( gmailurl )

to

webbrowser.open_new( gmailurl )

At the bottom of the script.

share|improve this answer
    
Didn't work, for me: keeps opening gmail page, not the composer... – MarcoS Mar 2 '14 at 12:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .