index — crispy-website @ f2bad09a4d8c50f9d3951ee04b1709712615794d

My personal homepage (very crispy)

blog/2026-03-21 Start graphical app through independent shell/post.txt (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 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.