client: Fix open note custom when no terminal

This commit is contained in:
Elian Doran 2024-09-03 22:13:17 +03:00
parent 2e86ae6556
commit 67528789ed
No known key found for this signature in database

View File

@ -72,7 +72,7 @@ async function openCustom(type, entityId, mime) {
const terminal = terminals[index]; const terminal = terminals[index];
if (!terminal) { if (!terminal) {
console.error('Open Note custom: No terminal found!'); console.error('Open Note custom: No terminal found!');
open(getFileUrl(entityId), {url: true}); open(getFileUrl(type, entityId), {url: true});
return; return;
} }
exec(`which ${terminal}`, (error, stdout, stderr) => { exec(`which ${terminal}`, (error, stdout, stderr) => {