From e65d287907f04f68b9ef517e9cc0b1ac27b01e51 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 18 Dec 2017 09:46:21 +0100 Subject: [PATCH] main: resolve to absolute path when adding session to history --- CHANGELOG.md | 2 ++ app/main/callbacks.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92faa7a7..c04ce3a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.22.0 +- bug fixes + - sessions opened from command line with relative paths are now added to the history with their absolute path - main - added `zeroconf` / `bonjour` publishing for the app's http and osc input ports - cli diff --git a/app/main/callbacks.js b/app/main/callbacks.js index 05c1deea..91e85119 100644 --- a/app/main/callbacks.js +++ b/app/main/callbacks.js @@ -45,7 +45,7 @@ module.exports = { if (err || !stats.isFile()) return // add session to history - sessionlist.unshift(data) + sessionlist.unshift(path.resolve(data)) // remove doubles from history sessionlist = sessionlist.filter(function(elem, index, self) { return index == self.indexOf(elem)