Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0xbismarck opened this issue Dec 27, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@0xbismarck
Copy link

Describe feature

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

Additional Information

No response

@meichthys
Copy link
Contributor

This should still be relevant: zadam/trilium#250

@eliandoran eliandoran added the enhancement New feature or request label Dec 27, 2024
@maphew
Copy link

maphew commented Dec 28, 2024

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

@pano9000
Copy link
Contributor

pano9000 commented Jan 4, 2025

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

@0xbismarck
Copy link
Author

Yes, sorry I should have specified via the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants