]> gitweb.pimeys.fr Git - scripts-20-100.git/blobdiff - xauth-read.sh
Les 2 scripts indispensables pour lancer une appli graphique sur la machine distante
[scripts-20-100.git] / xauth-read.sh
diff --git a/xauth-read.sh b/xauth-read.sh
new file mode 100755 (executable)
index 0000000..fb9c8a7
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Pour lire les variables pour pouvoir afficher un truc à distance
+
+export XAUTHORITY=$(cat /tmp/${USER}_xauthority)
+export DISPLAY=$(cat /tmp/${USER}_display)
+
+echo $DISPLAY