summarylogtreecommitdiffstats
path: root/marktext-arg-handling.patch
diff options
context:
space:
mode:
authorCaleb Maclennan2020-04-24 00:02:28 +0300
committerCaleb Maclennan2020-04-24 00:02:28 +0300
commit7f80be4f5274a8a0603f71bc70a207ba07cba85d (patch)
treeb61865b63e7906210d031c7029c6fd12fa7ced06 /marktext-arg-handling.patch
parentc36aefc94b8eb483b03cc23ec8a66924a9c13d34 (diff)
downloadaur-7f80be4f5274a8a0603f71bc70a207ba07cba85d.tar.gz
upgpkg: marktext 0.16.1-6
Patch to fix arg handling from Electron wrapper
Diffstat (limited to 'marktext-arg-handling.patch')
-rw-r--r--marktext-arg-handling.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/marktext-arg-handling.patch b/marktext-arg-handling.patch
new file mode 100644
index 00000000000..c77ff73a8d5
--- /dev/null
+++ b/marktext-arg-handling.patch
@@ -0,0 +1,26 @@
+From 067973c193f78729d4c3eb55d2132ce9c49f8a97 Mon Sep 17 00:00:00 2001
+From: Caleb Maclennan <caleb@alerque.com>
+Date: Thu, 23 Apr 2020 22:52:39 +0300
+Subject: [PATCH] patch-args
+
+Signed-off-by: Caleb Maclennan <caleb@alerque.com>
+---
+ src/main/cli/index.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/main/cli/index.js b/src/main/cli/index.js
+index d306c409..1f07087e 100644
+--- a/src/main/cli/index.js
++++ b/src/main/cli/index.js
+@@ -10,7 +10,7 @@ const write = s => process.stdout.write(s)
+ const writeLine = s => write(s + '\n')
+
+ const cli = () => {
+- let argv = process.argv.slice(1)
++ let argv = process.argv.slice(2)
+ if (process.env.NODE_ENV === 'development') {
+ // Don't pass electron development arguments to Mark Text and change user data path.
+ argv = ['--user-data-dir', path.join(getPath('appData'), 'marktext-dev')]
+--
+2.26.2
+