From aabef16b808a710c7aed70ff751917c32d182c1d Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 5 May 2022 16:03:05 +0200 Subject: [PATCH] Now opens 'playerns' and Journal to ease 'qo-op' or 'moa' feed --- ajouter_video.sh | 4 +++- zen/new_file_in_astroport.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index 63a934d..1eb9b8d 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -602,7 +602,9 @@ FILE_SIZE=$(echo "${FILE_BSIZE}" | awk '{ split( "B KB MB GB TB PB" , v ); s=1; if [ ! $2 ]; then zenity --question --width 300 --text "OK! ~/astroport/Add_${MEDIAKEY}_script.sh ($FILE_SIZE). Voulez-vous lancer immédiatement l'ajout dans Astroport ?"; \ - [ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"; zenity --warning --width 300 --text "Collez le résultat dans votre Journal. FIN."; + [ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"\ + && zenity --warning --width 300 --text "Ajoutez ce media dans vos journaux public 'qo-op' ou administratif 'moa'" \ + && [[ $(cat ~/.zen/game/players/.current/.playerns 2>/dev/null) ]] && xdg-open "http://127.0.0.1:8080/ipns/$(cat ~/.zen/game/players/.current/.playerns)" fi [ $? != 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log"; exit 1 echo "${MEDIAKEY} = RECORDED TO IPFS." diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 2218e9a..e4a4cdc 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -459,8 +459,8 @@ then # COPY TIDDLER JSON TO DESKTOP Journal/${TYPE} - [[ "$USER" != "xbian" && -d ~/Bureau ]] && mkdir -p ~/Bureau/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Bureau/Journal/${TYPE}/${TITLE}.dragdrop.json - [[ "$USER" != "xbian" && -d ~/Desktop ]] && mkdir -p ~/Desktop/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Desktop/Journal/${TYPE}/${TITLE}.dragdrop.json + [[ "$USER" != "xbian" && -d ~/Bureau ]] && mkdir -p ~/Bureau/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Bureau/Journal/${TYPE}/${TITLE}.dragdrop.json && xdg-open "~/Bureau/Journal/${TYPE}/" + [[ "$USER" != "xbian" && -d ~/Desktop ]] && mkdir -p ~/Desktop/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Desktop/Journal/${TYPE}/${TITLE}.dragdrop.json && xdg-open "~/Desktop/Journal/${TYPE}/" fi