From d068c9a2779bed799ae918ed7e8b3e2aacd255e7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Oct 2022 15:42:10 +0200 Subject: [rootfs-stage32] Add steal_x helper to access running X --- core/rootfs/rootfs-stage32/data/root/.bashrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/rootfs') diff --git a/core/rootfs/rootfs-stage32/data/root/.bashrc b/core/rootfs/rootfs-stage32/data/root/.bashrc index 6266b0f4..2c49b8b3 100644 --- a/core/rootfs/rootfs-stage32/data/root/.bashrc +++ b/core/rootfs/rootfs-stage32/data/root/.bashrc @@ -46,3 +46,7 @@ if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi export PATH=/root/bin:$PATH +steal_x() { + export DISPLAY=":0" + export XAUTHORITY="/run/lightdm/root/:0" +} -- cgit v1.2.3-55-g7522