From 95a6a98ee477f5533e6849eb15d01b7df8140a4d Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 4 Jan 2017 11:49:16 +0100 Subject: [PATCH] Les 2 scripts indispensables pour lancer une appli graphique sur la machine distante MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit en l'affichant *là-bas* --- xauth-read.sh | 8 ++++++++ xauth.sh | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100755 xauth-read.sh create mode 100755 xauth.sh diff --git a/xauth-read.sh b/xauth-read.sh new file mode 100755 index 0000000..fb9c8a7 --- /dev/null +++ b/xauth-read.sh @@ -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 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 -- 2.39.2