Mailspring: Within the snap, Mailspring cannot open folders / files on disk (View Mailsync Logs)

Created on 25 Jan 2018  路  6Comments  路  Source: Foundry376/Mailspring

When I attempt to view MailSpring's log file to see why it's having trouble syncing my Bridge account (see #429, but that's not directly related), nothing happens. I'm unable to locate MailSpring's logfile.

If I run MailSpring from a terminal, here's the output when I try to view log files:

Error org.freedesktop.DBus.Error.UnknownInterface: Object does not implement the interface
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SafeLauncher was not provided by any .service files

I googled around and I believe it may be caused by Snap packages' sandboxing, which prevents apps from accessing other apps' data (sort of like iOS or Android sandboxing, but on the desktop). Per an ask Ubuntu thread, I tried in installing snapd-xdg-open and edited my config file per the answer. Similar result:

Error org.freedesktop.DBus.Error.AccessDenied: Supplied URL scheme "" is not allowed
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SafeLauncher was not provided by any .service files

Still no dice. Can you tell me where MailSpring keeps its log files so I can look at them by hand?

This issue may also be related to #449

What operating system are you using?

Ubuntu 17.10

What version of Mailspring are you using?

1.1.0-7563b09d

Do you have any third-party plugins installed? If so, which ones?

No

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

2 Gmail accounts, 1 ProtonMail Bridge account

bug linux snapcraft

Most helpful comment

Hey! Was able to reproduce this - Mailspring /should/ be able to open a folder, but it seems like it's calling xdg-open with a file path (eg: empty URL scheme) and that isn't working. If you want to look manually, these files are in /home/<you>/snap/mailspring/common

All 6 comments

I also did try installing the dpkg file. While the menu option to view logs worked, I unfortunately lost my configuration. Not a huge deal, but kind of a bummer.

So it's definitely only a problem with the snap package.

Hey! Was able to reproduce this - Mailspring /should/ be able to open a folder, but it seems like it's calling xdg-open with a file path (eg: empty URL scheme) and that isn't working. If you want to look manually, these files are in /home/<you>/snap/mailspring/common

@kkinder Are you running the snap version? If so, do you have snapd-xdg-open installed?

sudo apt install snapd-xdg-open

oops - the title states "snap". So please make sure you have the snapd-xdg-open package installed.

i have the same problem, i have 18.04 and it persist. i try install with snap but i can't run it.
i put "mailspring" in the terminal to run it, but doesn't work.

Hey folks鈥攊t's been a few years and I believe this has been fixed in more recent versions of Electron and/or snapcraft. Feel free to bump this or re-open a new issue if you run in to this again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cnazario3 picture cnazario3  路  38Comments

bashfulrobot picture bashfulrobot  路  38Comments

valentt picture valentt  路  54Comments

franco27 picture franco27  路  43Comments

ZathrasFive picture ZathrasFive  路  45Comments