check DISPLAY not an X11 export

This commit is contained in:
fred 2022-04-26 22:14:04 +02:00
parent 41782ddca5
commit 109199dbab
1 changed files with 1 additions and 1 deletions

View File

@ -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