summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-13 15:42:10 +0200
committerSimon Rettberg2022-10-13 15:42:10 +0200
commitd068c9a2779bed799ae918ed7e8b3e2aacd255e7 (patch)
treecd2e145b181f5bed40c4c91ea0343bea85fa061d /core/rootfs
parent[xorg] Fix MatchDriver for nvidia (diff)
downloadmltk-d068c9a2779bed799ae918ed7e8b3e2aacd255e7.tar.gz
mltk-d068c9a2779bed799ae918ed7e8b3e2aacd255e7.tar.xz
mltk-d068c9a2779bed799ae918ed7e8b3e2aacd255e7.zip
[rootfs-stage32] Add steal_x helper to access running X
Diffstat (limited to 'core/rootfs')
-rw-r--r--core/rootfs/rootfs-stage32/data/root/.bashrc4
1 files changed, 4 insertions, 0 deletions
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"
+}