index — crispy-website @ a2c121b99bd4409213a928154a22196609c055f4

My personal homepage (very crispy)

blog: gui through ssh
crispy-caesus crispy@crispy-caesus.eu
Sat, 21 Mar 2026 11:32:43 +0100
commit

a2c121b99bd4409213a928154a22196609c055f4

parent

2d2e25c49de28f75a32b11cbd4e0e72f020ab30e

1 files changed, 19 insertions(+), 0 deletions(-)

jump to
A blog/2026-03-21 Start graphical app through independent shell/post.txt

@@ -0,0 +1,19 @@

+Sometimes for obscure reasons I ssh into a device and want to start a graphical +app on the device. Maybe I wanna reload new groups on my user without +restarting my compositor or maybe I just wanna troll somebody. + +You essentially just need to set a few environment variables to access the +graphical session and be the same user. + +Wayland +XDG_RUNTIME_DIR=/run/user/1000 +WAYLAND_DISPLAY=wayland-1 + +X11 +DISPLAY=0 + +You might have to adjust the userid or display number based on your setup. + +This only deals with the most basic display things. If there are further +libraries and/or utilities like a polkit, you'll additionally have to link +that.