Closed dbergloev closed 6 months ago
Hey @dbergloev , did you assign a home directory for this custom user?
Yes I did
adduser --system --shell /bin/bash --home /config bridge
su bridge
echo $HOME
/config
Can you try setting XDG_DATA_HOME
for the bridge user?
That seams to do the trick
So protonmail bridge is actually using the XGD variables, that's actually awsome. Not really used to apps doing that, but all should. Well, I will just set this manually, since it's not set on login on my setup.
We first check XDG_DATA_HOME
before checking HOME
.
Closing as resolved.
We first check
XDG_DATA_HOME
before checkingHOME
.Closing as resolved.
Well in my case $HOME
is set and $XDG_DATA_HOME
was not, so if that is true, then something is up with that first check.
There must be some value assigned to XDG_DATA_HOME, otherwise we would not have used that value.
Hi.
So I tried setting up this bridge in a headless fasion where I wanted to have it run under a regular controlled user rather than root, but this does not seam possible.
Which produces the following error:
The issue seams to be
mkdir /root/.local: permission denied
which is strange, because$HOME = /config
.