-
Trilium Version0.50.2 What operating system are you using?Ubuntu What is your setup?Local (no sync) Operating System VersionUbunutu 20.04 LTS DescriptionSo I want to change the data directory location for my Trilium desktop setup. I followed the instructions as given in the documentation. However the data directory location is still not changing. The exact steps I perform are:
However the data directory value doesn't change. I have performed a similar change successfully on a Windows setup (Windows 10 Home, Trilium Desktop Local with No sync) by following the last comment in this discussion. My final aim is that I should be able to use the same |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
After step 2 and before step 3, can you try running |
Beta Was this translation helpful? Give feedback.
-
I did try |
Beta Was this translation helpful? Give feedback.
-
If you edit the
|
Beta Was this translation helpful? Give feedback.
-
You write:
But that's not how env. variables work in Linux - if you close the terminal, the env. variable you've set and exported disappears. To be active, you need to start trilium from terminal where you exported the variable. Alternatively you can set and export the variable in e.g. |
Beta Was this translation helpful? Give feedback.
-
Ok so I first followed what @zadam mentioned. (It completely slipped my mind that env. variables set using Next I set the variable permanently in the Finally I went ahead with what @sigaloid said. Still got no success. |
Beta Was this translation helpful? Give feedback.
-
What happens if you launch it directly from the terminal (env var before |
Beta Was this translation helpful? Give feedback.
-
This worked just now. |
Beta Was this translation helpful? Give feedback.
-
How should I make this permanent? Starting with the env variable everytime is a bit annoying (though I'll still do it if there's no solution. The app is just that good ;)). |
Beta Was this translation helpful? Give feedback.
-
Ok so I started Trilium today morning and realised that it's now working with
I don't know why it worked this way, but I think listing the steps might help someone facing a similar problem. Thanks @sigaloid @zadam for your help. Although the above is a roundabout method, it's worth it for an application as good as Trilium. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
env
is used for single command, it's a one-off, only affect one line.export
will change the environment variable for you whole terminal session. If you close the terminal, it goes away..bashrc
is the file that will be loaded automatically when you open a new terminal. So, if you putexport TRILIUM_DATA_DIR=home/<usr_name>/<some_path>
to the end of your.bashrc
file. The setting should be available for every new terminal session now.