1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

testing handling on linux

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-01-29 16:24:31 -05:00
parent f8b36055f5
commit 117c833e2c
3 changed files with 8 additions and 2 deletions

View File

@ -1,2 +0,0 @@
fileAssociations:
- lens

View File

@ -171,6 +171,12 @@
], ],
"snap": { "snap": {
"confinement": "classic" "confinement": "classic"
},
"fileAssociations": {
"protocols": {
"name": "Lens Protocol Handler",
"schemes": "lens"
}
} }
}, },
"lens": { "lens": {

View File

@ -52,10 +52,12 @@ if (app.commandLine.getSwitchValue("proxy-server") !== "") {
} }
if (!app.requestSingleInstanceLock()) { if (!app.requestSingleInstanceLock()) {
console.log(process.argv);
app.exit(); app.exit();
} }
app.on("second-instance", () => { app.on("second-instance", () => {
console.log(process.argv);
windowManager?.ensureMainWindow(); windowManager?.ensureMainWindow();
}); });