Skip to content

Build your personal knowledge base with Trilium Notes

client: Fix open note custom when no terminal

Elian Doran67528789ed77
diff --git a/src/public/app/services/open.js b/src/public/app/services/open.js
index b3a1ae08b9..05ac9b63bf 100644
--- a/src/public/app/services/open.js
+++ b/src/public/app/services/open.js
@@ -72,7 +72,7 @@ async function openCustom(type, entityId, mime) {
const terminal = terminals[index];
if (!terminal) {
console.error('Open Note custom: No terminal found!');
- open(getFileUrl(entityId), {url: true});
+ open(getFileUrl(type, entityId), {url: true});
return;
}
exec(`which ${terminal}`, (error, stdout, stderr) => {