diff --git a/bin/tpl/trilium-portable.bat b/bin/tpl/trilium-portable.bat index ab07e2cd9..b6eeb853f 100644 --- a/bin/tpl/trilium-portable.bat +++ b/bin/tpl/trilium-portable.bat @@ -15,6 +15,7 @@ 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%" start trilium.exe