summarylogtreecommitdiffstats
path: root/fix-license-path.patch
blob: ecffc1eb0cab9ab2db57e699380751f5c8880f9c (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
@@ -716,7 +716,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