Mailspring is initially not opening fully, including clicking on it in the system tray

Hi there.

I am using Mailspring on CachyOS (Arch Linux) and really enjoying it - so much better than other packages I’ve used.

I’m having one strange behaviour - when my computer first boots up, Mailspring starts in the system tray, as expected. But when I click on it or choose ‘Open Inbox’ from the right-click menu nothing happens. When I try to open Mailspring from the Application Launcher it also doesn’t open.

HOWEVER, when I get a new mail and click on the notification that appears, then everything works as normal from then on - Mailspring pops up, minimises as expected, I can close the main window and restore it from the system tray, etc.

So this means, in practice, I have to email myself (from in-browser Gmail) and then click on the notification that shows up for Mailspring to work normally.

One more thing, in case it’s relevant. When I close completely out of it, then run it from a terminal, I get the following:

❯ mailspring  
Running database migrations
App load time: 154ms
Error: Could not load libtidy. Tried: libtidy.so.5, libtidy.so.58, libtidy.so.5deb1, libtidy.so.60, libtidy.so.6, libtidy.so. Last error: libtidy.so: cannot open shared object file: No such file or directory
Install libtidy on your system (e.g., 'apt install libtidy-dev' or 'dnf install libtidy-devel')

{"error":null}
[20774:0126/173347.397874:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:273] Unable to set image transfer function.
[20774:0126/173347.397883:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:191] Failed to populate image description for color space {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}
[20774:0126/173347.399517:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:273] Unable to set image transfer function.
[20774:0126/173347.399524:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:191] Failed to populate image description for color space {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}
Manual update check (updates.getmailspring.com/check/linux/x64/1.17.0-5e478521/aeebdfa0-b99a-4c7e-b898-a21e49d87fca/stable) returned 200
(node:20774) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)

(I’m not experienced enough in Linux to decipher this, except that the missing library may be a problem? I can’t see how to install it on Arch Linux…)

In terms of the main problem, any ideas why this behaviour is happening? I’m running 1.17.0-5e278521, as Arch doesn’t seem to have 1.17.2 available yet in the repositories.

With thanks.

2 Likes

I’m having the same problem. Running on Ubuntu 24.04. App doesn’t open main window unless clicking on a notification.

Running mailspring from the terminal doesn’t throw any error:

Running database migrations
App load time: 208ms

{"error":null}
Manual update check (updates.getmailspring.com/check/linux/x64/1.17.2-a312df89/anonymous/stable) returned 204
(node:83735) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)


1 Like

I am getting the same issues and terminal output as @vshra on CachyOS (Arch Linux) with KDE.
I tried installing tidy to deal with the libtidy error but I still can’t see either my inbox window or the app icon (thought the widget still appears).

UPDATE: I found a weird half-fix. If I get a notification of a new email and click the notification, a Mailspring window pops up and I can navigate back to the inbox.

Hi @nsherefkin Yes, that is a temporary solution, but once I reboot my computer the problem starts all over again.

Having the same issue, hope it is solved soon.

Ubuntu 24.04.3 LTS installed through snap.

Different logs in terminal than @vshra but same symptoms and workaround.

usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
Gtk-Message: 08:16:31.626: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Running database migrations
App load time: 495ms
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory

{"error":null}
(node:6625) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)
(node:6883) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `exe --trace-deprecation ...` to show where the warning was created)
(node:6884) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `exe --trace-deprecation ...` to show where the warning was created)

FWIW… I get the following error multiple times when I terminate the process.

[36415:0205/011729.538245:ERROR:content/browser/gpu/gpu_process_host.cc:993] GPU process launch failed: error_code=1002

FIX: (for me) I just changed my GPU driver from the x.org xserver default driver to an Nvidia driver. Rebooted and it worked fine.

Exactly the same problem here as described by @vshra. I’m on Garuda Linux with Gnome 49. Have to email myself to be able to open Mailspring.

Ran into this today as well. Installed from the cachyos repo, not the snap. Icon appears in tray, but trying to open it doesn’t do anything. Using KDE + Wayland in case it makes a difference. Ran it with logs on (mailspring -l) and got the same libtidy error, but also:

{"error":null}
Manual update check (``updates.getmailspring.com/check/linux/x64/1.17.2-a312df89/anonymous
/stable) returned 200
[217057:0208/230821.369412:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:273] Unable to set image transfer function.
[217057:0208/230821.369425:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:191] Failed to populate image description for color space {primaries:BT709, transfer
:SRGB, matrix:RGB, range:FULL}
[217057:0208/230821.370362:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:273] Unable to set image transfer function.
[217057:0208/230821.370369:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:191] Failed to populate image description for color space {primaries:BT709, transfer
:SRGB, matrix:RGB, range:FULL}
[217057:0208/230821.722168:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:273] Unable to set image transfer function.
[217057:0208/230821.722182:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager
.cc:191] Failed to populate image description for color space {primaries:BT709, transfer
:SRGB, matrix:RGB, range:FULL}
(node:217057) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)

And then running –trace-depreciation:



(node:218072) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. 
    at asarStatsToFsStats (node:electron/js2c/node_init:2:1796) 
    at Object.t.lstatSync (node:electron/js2c/node_init:2:4883) 
    at Object.t.statSync (node:electron/js2c/node_init:2:5445) 
    at Object.fs.statSyncNoException (/opt/mailspring/resources/app.asar/src/browser/mai
n.js:9:24) 
    at Function.<anonymous> (file:///tmp/nylas-build/electron-packager/tmp-VL5OPX/resour
ces/app/src/browser/mailspring-protocol-handler.ts:38:30)

So… A Wayland + electron issue?

I use Zorin 18 with Wayland and it also doesn’t open for me. I have to send myself an email from gmail and once I get a notification of a new message then I can click that and it opens. Annoying but…

It’s likely. This advice found in another thread worked for me today (Ubuntu 22.04/snap):

 mailspring --ozone-platform=x11

I’ve added this to my .desktop file, and Mailspring now starts in an instant

@petermz’s solutions works for me on CachyOS KDE!

Aha, thank you, @petermz’s solution also works for me.

Yes, this works for me, thanks @petermz

But it would be good to have it fixed in the main package too.

Hey folks! Version 1.17.4 was just released and includes a fix for Wayland window activation (#2599) that addresses the issue where the app appears in the system tray but the window doesn’t show. This should resolve the need for the --ozone-platform=x11 workaround in most cases. Please update to 1.17.4 and let us know if Mailspring now opens its window reliably on first launch.

Works fine now (1.17.4, snap 586). Thanks for the fix!

That’s great, thanks @bengotow Updated now and deleted my old .desktop file, and it works perfectly.