home · contact · privacy
For ssh logins to raspi, forward WAYLAND_DISPLAY.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 30 Oct 2024 17:19:06 +0000 (18:19 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 30 Oct 2024 17:19:06 +0000 (18:19 +0100)
many_releases/home/raspi/profile [new file with mode: 0644]

diff --git a/many_releases/home/raspi/profile b/many_releases/home/raspi/profile
new file mode 100644 (file)
index 0000000..d8c6f59
--- /dev/null
@@ -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