Printing broken with Mailspring 1.14.0 in Ubuntu 20.04.6

Description

To Reproduce…

Steps to reproduce the behavior:

  1. Go to any email
  2. Click on print icon
  3. A new window with the email preview opens
  4. Than click on Print button
  5. Mail spring closes without opening system print dialog window

Expected Behavior

After clicking “print button” expected behavior is to open system print window and then printing the email

Screenshots

Setup

  • OS and Version: Ubuntu Linux 20.04.6
  • Installation Method: .deb
  • Mailspring Version: 1.14.0.07c62cca

Additional Context

Tested on Debian 12.7 and only happens in a few mails where the printer dialogue doesn’t open from the preview window, but doesn’t crash. When the preview window is closed, this is the console output:

Error:  (-3) loading 'file:///tmp/print.html'
    at rejectAndCleanup (node:electron/js2c/browser_init:2:78355)
    at finishListener (node:electron/js2c/browser_init:2:78517)
    at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:78904)
    at WebContents.emit (node:events:518:28)
    at WebContents.emit (node:domain:488:12) {
  errno: -3,
  code: '',
  url: 'file:///tmp/print.html'
} { pluginIds: [ 'print' ] }
Raven: 429 - undefined