From: Christian Heller Date: Wed, 30 Oct 2024 17:19:06 +0000 (+0100) Subject: For ssh logins to raspi, forward WAYLAND_DISPLAY. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=b872e110d07e97ca499a8cc5f87c978d7dbba14e;p=config For ssh logins to raspi, forward WAYLAND_DISPLAY. --- 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