From a7ee6acbc5806740c5d24968a59c37f818858e3a Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 22 Oct 2019 00:12:31 -0500 Subject: [PATCH] Fix display of the application license file --- app/build/tasks/package-task.js | 1 + app/src/browser/application.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build/tasks/package-task.js b/app/build/tasks/package-task.js index f30c176f2..fc7e0837f 100644 --- a/app/build/tasks/package-task.js +++ b/app/build/tasks/package-task.js @@ -146,6 +146,7 @@ module.exports = grunt => { '**/vendor/**', 'examples/**', '**/src/tasks/**', + '**/static/all_licenses.html', '**/node_modules/spellchecker/**', '**/node_modules/windows-shortcuts/**', ].join(',') + diff --git a/app/src/browser/application.ts b/app/src/browser/application.ts index 34ca881a9..1ccf12325 100644 --- a/app/src/browser/application.ts +++ b/app/src/browser/application.ts @@ -446,7 +446,7 @@ export default class Application extends EventEmitter { }); this.on('application:view-license', () => { - shell.openExternal(`file://${path.join(this.resourcePath, 'static', 'ALL_LICENSES.html')}`); + shell.openItem(path.join(this.resourcePath, 'static', 'all_licenses.html')); }); if (process.platform === 'darwin') {