gtk/atom/fix-license-path.patch
2017-05-25 18:00:05 +02:00

22 lines
991 B
Diff

--- a/src/main-process/atom-application.coffee
+++ b/src/main-process/atom-application.coffee
@@ -262,7 +262,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