distrobox.conf causes distroboxes to not launch after latest system update

I have a ublue-fedora-distrobox one and bazzite-arch one, and I just updated my system, and both are now saying this instead of launching:
Error: unknown flag: --env TRILIUM_DATA_DIR
See 'podman exec --help'
Error: unknown flag: --env TRILIUM_DATA_DIR
See 'podman exec --help'
This is what I have in my distrobox.conf
container_manager_additional_flags="--env TRILIUM_DATA_DIR=/var/mnt/ssd/Notes/Trilium"
container_manager_additional_flags="--env TRILIUM_DATA_DIR=/var/mnt/ssd/Notes/Trilium"
If I remove it they launch but now I can't set trillium-next data folder. This used to work before update
12 Replies
asen23
asen232mo ago
what does the flag do and why you require it
1
1OP2mo ago
it makes my trillium store my notes in that path that I specified
asen23
asen232mo ago
do you need to set it in distrobox conf? why not set it from your rc file
1
1OP2mo ago
I just picked the first path that I could find in my system from there https://github.com/89luca89/distrobox?tab=readme-ov-file#configure-distrobox but I will try moving it into the ${HOME}/.distroboxrc one
GitHub
GitHub - 89luca89/distrobox: Use any linux distribution inside your...
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available...
asen23
asen232mo ago
not distroboxrc, but your bashrc or zshrc or maybe .profile
1
1OP2mo ago
oh I tried but it caused an error I don't remember what it was I just couldn't find how to do it
asen23
asen232mo ago
try again and post the error also which application need this?
1
1OP2mo ago
I think I remember that there was no error and I added this to end of bashrc export VARNAME="my value" and it just didn't work but I will try again triliumnext-bin
asen23
asen232mo ago
if it doesnt work try /etc/environment put TRILIUM_DATA_DIR=/var/mnt/ssd/Notes/Trilium without export also i saw it have docker, usually its better to run that compared to distrobox
1
1OP2mo ago
wouldn't that disable itself after reboot because its immutable? I think docker is more heavy but I haven't looked into it its like a full os
asen23
asen232mo ago
after update probably, but not reboot distrobox should be more heavier, they use the same tech underneath but distrobox have more integration
1
1OP2w ago
nice i think it worked you know what happened i accidentally pasted export VARNAME="my value" instead of TRILIUM_DATA_DIR=/var/mnt/ssd/Notes/Trilium but i also did something else which fixed it but i dont remeber what it was so so if anyone has the same issue idk how to fix it I just added export C_INCLUDE_PATH="~/miniconda3/envs/pytorch312/bin/nvcc" to my bashrc and it didnt fix my issue that I was having so I am going to remember what it was i have no idea why trilium works because I removed the trilium data dir from both bashrc and stupid distrobox.conf the container_manager_additional_flags='--env C_INCLUDE_PATH=/home/jj/distrobox/fedora/miniconda3/envs/pytorch312/bin/nvcc' still doesn't work moving it into the ${HOME}/.distroboxrc one doesnt fix it either turns out it was pytorch issue so this solution does actually work but somehow without using it trilium got fixed in some other way too

Did you find this page helpful?