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}"
},
"snap": {
"autoStart": true,
"confinement": "strict",
"plugs": [
"default",

View File

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