Unable to start mailspring (Wayland)

Installed the latest version from Snap store on Linux Pop!_OS 19.04. I am using Gnome on Wayland.

When invoking the mailspring command from the command line getting:

alex@florianopolis:~$ ELECTRON_ENABLE_LOGGING=true mailspring
/snap/mailspring/346/bin/desktop-launch: line 282: [: /home/alex/../../../.drive/Google: binary operator expected
[12426:0616/151828.452869:WARNING:browser_main_loop.cc(269)] Gtk: cannot open display: :0
alex@florianopolis:~$ 

I have a directory called .drive in my home that I created.

After waiting for about 5 seconds the command simply exists and the client doesn’t appear.


(Originally posted by pavkam on GitHub.)

I am using Gnome on Wayland.

Mailspring is an electron app. Electron does no support Wayland yet.

cannot open display: :0

Mailspring tries to connect to Xorg, but you’re not running Xorg.

See #2013 and electron/electron#10915.

Running Mailspring on a modern Linux installation isn’t really feasable. You can use Xwayland, but the application will be very blurry if you have a hidpi display.


(Originally posted by WhyNotHugo on GitHub.)

Are there plans to upgrade to Electron 12? I saw your post about the Electron 11 migration, but 12 is out now and will solve this issue.

I’m just anxious that the next upgrade to a newer eletron version will also take a while and I won’t be able to use it native in wayland. :smiley:

1 Like

@bengotow would be the best one to answer that question. (Please be patient, though. He has a lot of demands on his plate.)

Yes, native Wayland support is available from Electron 12 on only. Please see this PR for details:

Including this will help Mailspring remain one of the only glossy Email clients on the Linux platform, which with Wayland, HiDPI and fractional scaling is visually polished and up to par with commercial operating systems.