]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
Les 2 scripts indispensables pour lancer une appli graphique sur la machine distante
authorVincent Le Gallic <legallic@crans.org>
Wed, 4 Jan 2017 10:49:16 +0000 (11:49 +0100)
committerVincent Le Gallic <legallic@crans.org>
Wed, 4 Jan 2017 10:49:16 +0000 (11:49 +0100)
en l'affichant *là-bas*

xauth-read.sh [new file with mode: 0755]
xauth.sh [new file with mode: 0755]

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
diff --git a/xauth.sh b/xauth.sh
new file mode 100755 (executable)
index 0000000..a58c26b
--- /dev/null
+++ b/xauth.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Pour exporter les variables nécessaires à afficher un truc à distance
+
+echo $XAUTHORITY > /tmp/${USER}_xauthority
+echo $DISPLAY > /tmp/${USER}_display