XDG_RUNTIME_DIR not found even when it is defined in the server
There are 3 closed issues 2 of them relevant to resolve the XDG_RUNTIME_DIR not found issue. However, they are not entirely clear on the resolution. I'd like to open an issue that could possibly document the various options to take.
I've tried creating a script on the server to define XDG_RUNTIME_DIR then run waypipe as per the instructions in the wiki for --remote-bin
:
!#/bin/bash
export XDG_RUNTIME_DIR=/run/user/$(id -u)
waypipe
I've tried passing in the command --- waypipe ssh {user}@{ip} "env XDG_RUNTIME_DIR=... foot"
--- and no dice.
I've tried adding the variable to ~/.ssh/environment
and to ~/.bashrc
without success (sshd_config has PermitUserEnvironment: yes
)
I've also tried some combination of this with the manual ssh steps where instead of waypipe ssh ...
, it's the full command with some combination of the environment variable passed in...
I've also tried running the client:server interaction locally which worked, leading me to believe that the client (remote) side is fine, and the issue with the env variable is on the server (host) side.
When I simply ssh into the server, the variable is set, but for some reason waypipe does not fetch it. I've also stopped any firewalls on the server side in case that might be an issue...
The server is PostmarketOS (Alpine Linux) if that makes any difference...
Hoping to get some insights from the maintainer or contributors to see if there was something I missed or a typo/mistake in a script or command I wrote.