gtk/atom/fix-license-path.patch
2017-12-19 09:30:13 +00:00

23 lines
992 B
Diff

--- a/src/main-process/atom-application.coffee
+++ b/src/main-process/atom-application.coffee
@@ -272,7 +272,7 @@
@openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
@openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
@openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
- @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
+ @openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
@disposable.add ipcHelpers.on app, 'before-quit', (event) =>
unless @quitting
--- a/src/workspace.js
+++ b/src/workspace.js
@@ -1046,7 +1046,7 @@
// Open Atom's license in the active pane.
openLicense () {
- return this.open(path.join(process.resourcesPath, 'LICENSE.md'))
+ return this.open('/usr/share/licenses/atom/LICENSE.md')
}
// Synchronously open the given URI in the active pane. **Only use this method