Fix autostart in snap
This commit is contained in:
parent
ce5a3f0f35
commit
c5edb3e04e
|
@ -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",
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue