From 109199dbab20b31eea9d90404a817daed04ec7bc Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Apr 2022 22:14:04 +0200 Subject: [PATCH] check DISPLAY not an X11 export --- ajouter_video.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index 977e818..b28221e 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -57,7 +57,7 @@ IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) [[ -f ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid ]] && XZUID=$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid) zenity --warning --width 300 --text "Cliquez nous capturons votre écran comme vignette MEDIA" -import -window root /tmp/screen.png +[[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]] && import -window root /tmp/screen.png ######################################################################## ## CADRE EXCEPTION COPIE PRIVE