From 758bb2e4744d344bf57f5123edfda75b730c3c6f Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sun, 25 Apr 2021 22:37:31 +0200 Subject: [PATCH] xplatform temp directory... --- app/c.js | 2 +- native-host/src/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/c.js b/app/c.js index 15e718d..bdefebc 100644 --- a/app/c.js +++ b/app/c.js @@ -10,7 +10,7 @@ function captureFrontMatterAndMarkdown() { } } else if (k.endsWith('[]')) { formData.set(k, formData.getAll(k)) - var s = JSON.stringify(formData.getAll(k)[0].split(" ☒").join("").split(",")) + var s = JSON.stringify(formData.getAll(k)[0].split(",")) frontmatter += `${k.slice(0, -2)}: ${s}\n` } else if (k == "relpath") { filepath = `${location.pathname.split('/public')[0]}/content/${formData.get(k)}` diff --git a/native-host/src/main.go b/native-host/src/main.go index e3e37e4..b5fec9b 100644 --- a/native-host/src/main.go +++ b/native-host/src/main.go @@ -69,7 +69,7 @@ func Init(traceHandle io.Writer, errorHandle io.Writer) { } func main() { - file, err := os.OpenFile(filepath.Join("/tmp", "sandpoints-chromeext-log.txt"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) + file, err := os.OpenFile(filepath.Join(os.TempDir(), "sandpoints-chromeext-log.txt"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { Init(os.Stdout, os.Stderr) Error.Printf("Unable to create and/or open log file. Will log to Stdout and Stderr. Error: %v", err)