summarylogtreecommitdiffstats
path: root/fix-license-path.patch
blob: 4cdcf55640a696c596eeeb4fe30d226e56902ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/main-process/atom-application.js
+++ b/src/main-process/atom-application.js
@@ -711,7 +711,7 @@
     );
     this.openPathOnEvent(
       'application:open-license',
-      path.join(process.resourcesPath, 'LICENSE.md')
+      '/usr/share/licenses/atom/LICENSE.md'
     );
 
     this.configFile.onDidChange(settings => {
--- a/src/workspace.js
+++ b/src/workspace.js
@@ -1300,7 +1300,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