From b872e110d07e97ca499a8cc5f87c978d7dbba14e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 30 Oct 2024 18:19:06 +0100 Subject: [PATCH] For ssh logins to raspi, forward WAYLAND_DISPLAY. --- many_releases/home/raspi/profile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 many_releases/home/raspi/profile diff --git a/many_releases/home/raspi/profile b/many_releases/home/raspi/profile new file mode 100644 index 0000000..d8c6f59 --- /dev/null +++ b/many_releases/home/raspi/profile @@ -0,0 +1,10 @@ +# ~/.profile: executed by the command interpreter for login shells. + +# simplified defaults: read .bashrc, extend PATH by bin dirs +. "$HOME/.bashrc" +PATH="$HOME/.local/bin:$HOME/bin:$PATH" + +# to forward video on commands run via SSH login to screen we expect connected +if [ -n "$SSH_CONNECTION" ]; then + export WAYLAND_DISPLAY=wayland-1 +fi -- 2.30.2