Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix launch protocol on Linux - Closes #909
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Oct 27, 2017
1 parent 0b3ac0d commit aa5e396
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function createWindow() {
win.on('blur', () => win.webContents.send('blur'));
win.on('focus', () => win.webContents.send('focus'));

if (process.platform === 'win32') {
sendUrlToRouter(process.argv.slice(1));
if (process.platform !== 'darwin') {
sendUrlToRouter(process.argv[1] || '/');
}

Menu.setApplicationMenu(buildMenu(app, copyright, i18n));
Expand Down Expand Up @@ -142,8 +142,8 @@ app.setAsDefaultProtocolClient(protocolName);

// Force single instance application
const isSecondInstance = app.makeSingleInstance((argv) => {
if (process.platform === 'win32') {
sendUrlToRouter(argv.slice(1));
if (process.platform !== 'darwin') {
sendUrlToRouter(argv[1] || '/');
}
if (win) {
if (win.isMinimized()) win.restore();
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"css-loader": "0.28.7",
"cucumber": "2.2.0",
"del-cli": "1.1.0",
"electron": "1.7.8",
"electron": "1.8.1",
"electron-builder": "19.32.2",
"electron-json-storage": "^3.2.0",
"enzyme": "2.9.1",
Expand Down Expand Up @@ -149,7 +149,11 @@
"deb",
"rpm",
"tar.gz"
]
],
"desktop": {
"MimeType": "application/lisk;x-scheme-handler/lisk"
},
"category": "Network"
},
"win": {
"target": "nsis"
Expand Down

0 comments on commit aa5e396

Please sign in to comment.