mailto: links do not open new composer on Linux
I click a mailto: link within a webpage in Chrome, and N1 opens, but there is no new window for composing an email.
Thanks for the report! We'll check it out.
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.
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]
Ok the last one is the most important. I see the browser launched N1 with the first argument being the address.
@grinich N1 needs to check for a mailto in process.argv and open a compose window.
Though, which email would be selected if the user has multiple accounts.
Maybe the primary/main account otherwise put the focus on the choice of email identity to send with...
I am wondering if account/alias selection in the composer window would be easier.
Any update on this, team Nylas? mailto:[email protected]
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 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.
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?
Works like a charm on OS 10.10.5: with N1 set as the default email client, in the 3 browsers I use daily:
- 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
-
Firefox 45.0.1: "File > Email link…" [does same].
-
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

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)
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.
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
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!
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.
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)
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!
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.