When running from the Linux snap, use no-sandbox

This commit is contained in:
Ben Gotow 2021-04-13 10:59:18 -05:00
parent 4982064fba
commit 02cb922dea
4 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ jobs:
- image: circleci/node:12.9.1-stretch
steps:
- checkout
- sudo apt-get update && sudo apt-get install libsecret-1-dev
- restore_cache:
name: Restore Package Cache
keys:

View file

@ -2,7 +2,7 @@
Name=<%= productName %>
Comment=<%= description %>
GenericName=Mail Client
Exec=/usr/bin/mailspring %U
Exec=mailspring %U
Icon=mailspring
Type=Application
StartupNotify=true
@ -109,4 +109,4 @@ Name[zh_CN]=新邮件
Name[zh_TW]=
Name[zh]=
Name[zu]=Umyalezo omusha
Exec=/usr/bin/mailspring mailto:
Exec=mailspring mailto:

View file

@ -15,7 +15,7 @@ exports.safeExec = function(command, options, callback) {
options.stdio = 'inherit';
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
if (error && !options.ignoreStderr) {
if (error && error.code && !options.ignoreStderr) {
console.error(`safeExec: the command exited with ${error} ${error.code}`);
console.error('`------------- stderr ------------');
console.error(stderr);

View file

@ -53,7 +53,7 @@ parts:
apps:
mailspring:
command: desktop-launch $SNAP/usr/share/mailspring/mailspring
command: desktop-launch $SNAP/usr/share/mailspring/mailspring --no-sandbox
desktop: usr/share/applications/Mailspring.desktop
environment:
# Correct the TMPDIR path for Chromium Framework/Electron to