Commit f78af975 authored by Francesco Marinucci's avatar Francesco Marinucci

[skip-ci] atom: update to 1.41.0

parent 93bc8ff3
pkgname=atom
pkgver=1.40.1
pkgver=1.41.0
pkgrel=1
pkgdesc='A hackable text editor for the 21st Century'
arch=('x86_64')
......@@ -13,9 +13,9 @@ options=(!emptydirs)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/atom/archive/v${pkgver}.tar.gz"
'fix-license-path.patch'
'fix-restart.patch')
sha256sums=('7ec4b3fd35d3dcb4df90911726144ca5d05335ee9c0f093f2c29fa22fbe3527a'
'67ecd71b08292218388205ee49e02d176a15bd0c3e74d30cb720b79c6946f4c9'
'a6fa960741823a52b2f82684285e26eb84ce54825dc7ed008fdaca974b60957e')
sha256sums=('4a440909462c461cbec9b82b5f97bd21719a34f0ab59f2d859df85a40246c949'
'2894cce31935d45291c5fe4c625473bb83fc51e1b899f162aa6b419491c7ace1'
'd5b2ef8ab5a6a513deb410ba84f58abfb48707539dc08c29e9822009ee4eeb18')
prepare() {
cd $pkgname-$pkgver
......
--- a/src/main-process/atom-application.js
+++ b/src/main-process/atom-application.js
@@ -413,7 +413,7 @@
this.openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
this.openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
this.openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
- this.openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
+ this.openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
@@ -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 => {
for (let window of this.getAllWindows()) {
--- a/src/workspace.js
+++ b/src/workspace.js
@@ -1105,7 +1105,7 @@
@@ -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')
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
--- a/src/main-process/atom-application.js
k--- a/src/main-process/atom-application.js
+++ b/src/main-process/atom-application.js
@@ -1339,7 +1339,7 @@
@@ -2047,7 +2047,7 @@
}
restart () {
- const args = []
+ const args = ['/usr/lib/atom/atom']
if (this.safeMode) args.push('--safe')
if (this.logFile != null) args.push(`--log-file=${this.logFile}`)
if (this.socketPath != null) args.push(`--socket-path=${this.socketPath}`)
restart() {
- const args = [];
+ const args = ['/usr/lib/atom/atom'];
if (this.safeMode) args.push('--safe');
if (this.logFile != null) args.push(`--log-file=${this.logFile}`);
if (this.userDataDir != null)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment