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 - image: circleci/node:12.9.1-stretch
steps: steps:
- checkout - checkout
- sudo apt-get update && sudo apt-get install libsecret-1-dev
- restore_cache: - restore_cache:
name: Restore Package Cache name: Restore Package Cache
keys: keys:

View file

@ -2,7 +2,7 @@
Name=<%= productName %> Name=<%= productName %>
Comment=<%= description %> Comment=<%= description %>
GenericName=Mail Client GenericName=Mail Client
Exec=/usr/bin/mailspring %U Exec=mailspring %U
Icon=mailspring Icon=mailspring
Type=Application Type=Application
StartupNotify=true StartupNotify=true
@ -109,4 +109,4 @@ Name[zh_CN]=新邮件
Name[zh_TW]= Name[zh_TW]=
Name[zh]= Name[zh]=
Name[zu]=Umyalezo omusha 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'; options.stdio = 'inherit';
var child = childProcess.exec(command, options, function(error, stdout, stderr) { 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(`safeExec: the command exited with ${error} ${error.code}`);
console.error('`------------- stderr ------------'); console.error('`------------- stderr ------------');
console.error(stderr); console.error(stderr);

View file

@ -53,7 +53,7 @@ parts:
apps: apps:
mailspring: 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 desktop: usr/share/applications/Mailspring.desktop
environment: environment:
# Correct the TMPDIR path for Chromium Framework/Electron to # Correct the TMPDIR path for Chromium Framework/Electron to