Fix autostart in snap

This commit is contained in:
Hinton 2020-12-14 22:45:36 +01:00
parent ce5a3f0f35
commit c5edb3e04e
2 changed files with 8 additions and 7 deletions

View File

@ -221,6 +221,7 @@
"artifactName": "${productName}-${version}-${arch}.${ext}" "artifactName": "${productName}-${version}-${arch}.${ext}"
}, },
"snap": { "snap": {
"autoStart": true,
"confinement": "strict", "confinement": "strict",
"plugs": [ "plugs": [
"default", "default",

View File

@ -102,13 +102,13 @@ export class MessagingMain {
private addOpenAtLogin() { private addOpenAtLogin() {
if (process.platform === 'linux') { if (process.platform === 'linux') {
const data = `[Desktop Entry] const data = `[Desktop Entry]
Type=Application Type=Application
Version=${app.getVersion()} Version=${app.getVersion()}
Name=Bitwarden Name=Bitwarden
Comment=Bitwarden startup script Comment=Bitwarden startup script
Exec=${app.getPath('exe')} Exec=${app.getPath('exe')}
StartupNotify=false StartupNotify=false
Terminal=false`; Terminal=false`;
const dir = path.dirname(this.linuxStartupFile()); const dir = path.dirname(this.linuxStartupFile());
if (!fs.existsSync(dir)) { if (!fs.existsSync(dir)) {