(Feature request) Make location of trilium-data folder configurable #766

Closed
opened 2025-10-01 15:54:41 -05:00 by giteasync · 6 comments
Owner

Originally created by @0xbismarck on GitHub.

Describe feature

I'd like to have the ability to configure where Trilium Next stores the trilium-data directory.

Additional Information

No response

Originally created by @0xbismarck on GitHub. ### Describe feature I'd like to have the ability to configure where Trilium Next stores the trilium-data directory. ### Additional Information _No response_
Author
Owner

@pano9000 commented on GitHub:

I assume this request might be about being able to change this in the Settings via UI?

@pano9000 commented on GitHub: I assume this request might be about being able to change this in the Settings via UI?
Author
Owner

@pano9000 commented on GitHub:

then I would think this is a duplicate issue of https://github.com/TriliumNext/trilium/issues/4994 and we should close TriliumNext/trilium#5356 and continue in TriliumNext/trilium#4994

@pano9000 commented on GitHub: then I would think this is a duplicate issue of https://github.com/TriliumNext/trilium/issues/4994 and we should close TriliumNext/trilium#5356 and continue in TriliumNext/trilium#4994
Author
Owner

@maphew commented on GitHub:

This is already possible by setting TRILIUM_DATA environment variable before launchng trilium.

Windows CMD prompt examples:

:: set and save var for all future launches
setx TRILIUM_DATA  d:\path\to\my-trilium-data

Launch-trilium-my-data.bat:

:: set for this current shell only
set TRILIUM_DATA=d:\path\to\my-trilium-data

:: launch trilium (adust path as needed)
%LOCALAPPDATA%\trilium\trilium.exe

Note the syntax difference: setx requires a space between var and value, while set requires = and no spaces.

Linux bash will be something like:

TRILIUM_DATA=~/path/to/my-trilium-data ; trilium
@maphew commented on GitHub: This is already possible by setting TRILIUM_DATA environment variable before launchng trilium. Windows CMD prompt examples: ``` :: set and save var for all future launches setx TRILIUM_DATA d:\path\to\my-trilium-data ``` Launch-trilium-my-data.bat: ``` :: set for this current shell only set TRILIUM_DATA=d:\path\to\my-trilium-data :: launch trilium (adust path as needed) %LOCALAPPDATA%\trilium\trilium.exe ``` Note the syntax difference: `setx` requires a space between var and value, while `set` requires `=` and no spaces. Linux bash will be something like: ``` TRILIUM_DATA=~/path/to/my-trilium-data ; trilium ```
Author
Owner

@0xbismarck commented on GitHub:

Yes, sorry I should have specified via the UI.

@0xbismarck commented on GitHub: Yes, sorry I should have specified via the UI.
Author
Owner

@meichthys commented on GitHub:

This should still be relevant: https://github.com/zadam/trilium/issues/250

@meichthys commented on GitHub: This should still be relevant: https://github.com/zadam/trilium/issues/250
Author
Owner

@0xbismarck commented on GitHub:

I concur. Let's direct this discussion in TriliumNext/trilium#4994

@0xbismarck commented on GitHub: I concur. Let's direct this discussion in TriliumNext/trilium#4994
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#766
No description provided.