nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

mailto: links do not open new composer on Linux

Open g105b opened this issue 11 years ago • 41 comments

I click a mailto: link within a webpage in Chrome, and N1 opens, but there is no new window for composing an email.

g105b avatar Nov 13 '15 14:11 g105b

Thanks for the report! We'll check it out.

grinich avatar Nov 15 '15 01:11 grinich

When you do that, what are the arguments of the main N1 process in the process manager. It could give some insight on how to detect a clicked email link.

mbilker avatar Nov 15 '15 16:11 mbilker

There seem to be multiple processes spawned by clicking the mailto link, here's the output of ps -fp for each process:

for process_id in `pidof nylas`; do
> ps -fp $process_id
> done
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19970 19794  3 22:02 ?        00:00:02 /usr/share/nylas/nylas --type=renderer --force-device-scale-factor=1 --js-flags=--harmony --no-sandbox --enable-deferred-im
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19928 19794  3 22:02 ?        00:00:03 /usr/share/nylas/nylas --type=renderer --force-device-scale-factor=1 --js-flags=--harmony --no-sandbox --enable-deferred-im
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19833 19794  3 22:02 ?        00:00:03 /usr/share/nylas/nylas --type=renderer --force-device-scale-factor=1 --js-flags=--harmony --no-sandbox --enable-deferred-im
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19829 19794  6 22:02 ?        00:00:05 /usr/share/nylas/nylas --type=renderer --force-device-scale-factor=1 --js-flags=--harmony --no-sandbox --enable-deferred-im
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19816 19790  0 22:02 ?        00:00:00 /usr/share/nylas/nylas --type=gpu-process --channel=19790.0.1123018158 --no-sandbox --supports-dual-gpus=false --gpu-driver
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19794 19790  0 22:02 ?        00:00:00 /usr/share/nylas/nylas --type=zygote --no-sandbox
UID        PID  PPID  C STIME TTY          TIME CMD
g105b    19790  1509  2 22:02 ?        00:00:02 /usr/share/nylas/nylas mailto:[email protected]

g105b avatar Nov 15 '15 22:11 g105b

Ok the last one is the most important. I see the browser launched N1 with the first argument being the address.

mbilker avatar Nov 15 '15 23:11 mbilker

@grinich N1 needs to check for a mailto in process.argv and open a compose window.

mbilker avatar Nov 15 '15 23:11 mbilker

Though, which email would be selected if the user has multiple accounts.

mbilker avatar Nov 15 '15 23:11 mbilker

Maybe the primary/main account otherwise put the focus on the choice of email identity to send with...

ChristopheLux avatar Dec 02 '15 21:12 ChristopheLux

I am wondering if account/alias selection in the composer window would be easier.

mbilker avatar Dec 02 '15 23:12 mbilker

Any update on this, team Nylas? mailto:[email protected]

bashok001 avatar Feb 01 '16 16:02 bashok001

This should be fixed by b515a5e0e26f96e42bc3efd6ebd948f029f3f5de. I believe this was related to a bug where mailto:// links would only open a composer if N1 was already running, but would always launch the app.

bengotow avatar Mar 17 '16 20:03 bengotow

@bengotow if N1 wasn't running, nothing would happen. If N1 was running, it would focus the N1 main window, but a compose window would not appear.

g105b avatar Mar 18 '16 10:03 g105b

Hey! This should be fixd in 0.4.19. Can you grab the update and let me know if you still run into the issue?

bengotow avatar Mar 25 '16 23:03 bengotow

Works like a charm on OS 10.10.5: with N1 set as the default email client, in the 3 browsers I use daily:

  1. Chrome 49.0.2623.87 (64-bit): CMD+SHIFT+i foregrounds a new N1 message window, populated thus:
  • From field with my default sending addy
  • Subject field with a useful description of the page
  • A live link in the message body
  • A cursor blinking in the To field
  1. Firefox 45.0.1: "File > Email link…" [does same].

  2. Safari 9.0.3 (10601.4.4) [does same]—but also calls the N1 viewer, so the windows appear:

  • N1 new message window foreground
  • N1 viewer behind that
  • Safari page behind that

(In this instance, it's simple to send the email, which makes the message window go away, then just click on the Safari window to foreground it; adds a step, but it's not onerous.)

Yay!

I'm having trouble updating N1 on my Linux box (Elementary OS 0.3.2, 64-bit, over Ubuntu 14.04). Elementary's Software Updater (GUI app) only knows about N1 0.4.16-8cb7748.

I was able to download & extract N1 0.4.19 from GitHub, but I don't know how/where to install all the folders.

Can you tell me the command line to grab the latest N1 build via a terminal? Then I can report on this feature in this Linux distro.

Thanks ion advance!

--

John Sandel

![](https://link.nylas.com/open/1agfhyvv7m51i6j1eeof12ha1/fa6ff0a244ff497eb853 a63a7ab8ec24)

On Mar 25 2016, at 4:45 pm, Ben Gotow <[email protected]> wrote:

Hey! This should be fixd in 0.4.19. Can you grab the update and let me know if you still run into the issue?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or [view it on GitHub](https://github.com/nylas/N 1/issues/403#issuecomment-201591713)![](https://github.com/notifications/beaco n/APe7rSedGj9qMIQ2Y92WdHA9qXsqGh8vks5pxHOGgaJpZM4Gh3lu.gif)

JohnSandel avatar Mar 26 '16 03:03 JohnSandel

I'm not the OP, but I (still) have this issue. Opening a mailto link in Chrome switches focus to Nylas, but doesn't open a compose window. I'm on Ubuntu 15.04 (Gnome), running Nylas 0.4.19-d41e72c.

twonth avatar Mar 29 '16 01:03 twonth

I just upgraded N1. I understand that the latest version in my software repository system is not the bleeding edge, but in case it helps anyone, here is a screen recording of the bug in action, using the latest version 0.4.16 in Ubuntu.

https://www.youtube.com/watch?v=OzOl9eneTdQ

g105b avatar Mar 30 '16 11:03 g105b

Hey folks! We've fixed two separate issues related to mailto links. First, in 0.4.19 we fixed a problem where N1 would launch, but not open a composer when you clicked a mailto link.

In the next release, were fixing a separate issue where mailto links within N1 would open the default mail client when it was not N1. In the next release (due this week) clicking mailto links inside N1 will always keep you in N1.

I believe there may be a third issue, where N1 is not responding to mailto links properly on Linux. Could you do me a favor and try 0.4.19 and see if your issue persists? Cheers!

bengotow avatar Apr 05 '16 17:04 bengotow

On Linux with 0.4.19, clicking on mailto: link is launching N1 if not open, would bring N1 to focus if it is open. But as you mentioned, no composer yet.

bashok001 avatar Apr 05 '16 17:04 bashok001

Dear Ben,

I would love to help testing 0.4.19.

Thank you very much for your work!

Is there any chance I can install this version using an Ubuntu deb package?

Thankfully,

~Robert

Sent from Nylas N1, the extensible, open source mail client.

On Apr 5 2016, at 7:46 pm, Ben Gotow <[email protected]> wrote:

Hey folks! We've fixed two separate issues related to mailto links. First, in 0.4.19 we fixed a problem where N1 would launch, but not open a composer when you clicked a mailto link.

In the next release, were fixing a separate issue where mailto links within N1 would open the default mail client when it was not N1. In the next release (due this week) clicking mailto links inside N1 will always keep you in N1.

I believe there may be a third issue, where N1 is not responding to mailto links properly on Linux. Could you do me a favor and try 0.4.19 and see if your issue persists? Cheers!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or [view it on GitHub](https://github.com/nylas/N 1/issues/403#issuecomment-205916371)![](https://github.com/notifications/beaco n/AAKbwz-UQs6b-5KP0mtlsKUGlJXsZQHQks5p0p_igaJpZM4Gh3lu.gif)

orschiro avatar Apr 05 '16 17:04 orschiro

Hey folks—This should be fixed in version 0.4.25, which will be hitting the auto-updaters soon. (If you want you can grab the update now on the Releases page.) Give it a spin, and feel free to re-open if you run into the issue again. Cheers—enjoy the update!

bengotow avatar Apr 13 '16 00:04 bengotow

Thanks for your work on this. However, I'm still having the same issue I noted above, despite upgrading to 0.4.25. mailto links switch the focus to Nylas, but don't open a compose window.

twonth avatar Apr 13 '16 01:04 twonth