Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not resolve absolute paths

thecodrr5fec9eeeeaa2
diff --git a/apps/web/desktop/ipc/utils.js b/apps/web/desktop/ipc/utils.js
index a6a6ccf42..5bd2a4d39 100644
--- a/apps/web/desktop/ipc/utils.js
+++ b/apps/web/desktop/ipc/utils.js
@@ -9,6 +9,8 @@ function sendMessageToRenderer(type, payload = {}) {
}
function resolvePath(_path) {
+ if (path.isAbsolute(_path)) return _path;
+
return path.join(
..._path.split("/").map((segment) => {
let resolved = segment;