diff --git a/bin/tpl/trilium-no-cert-check.bat b/bin/tpl/trilium-no-cert-check.bat index 360064bdc..cfc345c42 100644 --- a/bin/tpl/trilium-no-cert-check.bat +++ b/bin/tpl/trilium-no-cert-check.bat @@ -16,7 +16,7 @@ chcp 65001 :: Get Current Trilium executable directory and compute data directory SET DIR=%~dp0 set NODE_TLS_REJECT_UNAUTHORIZED=0 -cd %DIR% +cd "%DIR%" start trilium.exe GOTO END diff --git a/bin/tpl/trilium-portable.bat b/bin/tpl/trilium-portable.bat index a89476ae0..b6eeb853f 100644 --- a/bin/tpl/trilium-portable.bat +++ b/bin/tpl/trilium-portable.bat @@ -15,8 +15,9 @@ chcp 65001 :: Get Current Trilium executable directory and compute data directory SET DIR=%~dp0 +SET DIR=%DIR:~0,-1% SET TRILIUM_DATA_DIR=%DIR%\trilium-data -cd %DIR% +cd "%DIR%" start trilium.exe GOTO END diff --git a/bin/tpl/trilium-safe-mode.bat b/bin/tpl/trilium-safe-mode.bat index 7692ec7dc..7e0fafa99 100644 --- a/bin/tpl/trilium-safe-mode.bat +++ b/bin/tpl/trilium-safe-mode.bat @@ -16,7 +16,7 @@ chcp 65001 :: Get Current Trilium executable directory and compute data directory SET DIR=%~dp0 SET TRILIUM_SAFE_MODE=1 -cd %DIR% +cd "%DIR%" start trilium.exe --disable-gpu GOTO END