From 52da9ff67e1cc695eb8f9b55e64e40305e8287de Mon Sep 17 00:00:00 2001 From: kyodev Date: Wed, 22 Nov 2017 07:29:18 +0100 Subject: [PATCH] getInfo 2.42.2 --- scripts/getInfo | 13 ++++++------- scripts/getInfo_changelog.md | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/getInfo b/scripts/getInfo index 6d84778..22cb88e 100755 --- a/scripts/getInfo +++ b/scripts/getInfo @@ -1,6 +1,6 @@ #!/bin/bash -version=2.42.1 +version=2.42.3 date="21/11/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" @@ -1023,9 +1023,6 @@ fi_graph(){ # 21/11/2017 resolutions="n/a en root sous wayland" providers="n/a en root sous wayland" current_preferred="n/a en root sous wayland" - alert_Wayland="Un certain nombre de caractéristiques ne peuvent être déterminées avec des utilitaires " - alert_Wayland+="'graphiques' sous root (celui-çi n'a pas lancé le serveur graphique). Lancer le script" - alert_Wayland+="'en utilisateur remédiera à cela." else # openGl / glxinfo if [ $( f__which glxinfo ) ]; then @@ -1851,7 +1848,7 @@ fi_system_analyse(){ #v 21/11/2017 local bootTime cmd_bootTime cmt_bootTime pluriel text local srvcFail cmd_srvcFail cmt_srvcFail qte_srvcFail isrvc srvcFail_list local bootBlame cmd_bootBlame cmt_bootBlame bootCritic cmd_bootCritic cmt_bootCritic - local bootGraph cmd_bootGraph cmt_bootGraph file="/tmp/getInfo-graph-$RANDOM.svg" + local bootGraph cmd_bootGraph cmt_bootGraph file="/tmp/getInfo-graph.svg" local alert_srvcFail # durée du précédent boot bootTime=$( systemd-analyze time ) @@ -1894,6 +1891,8 @@ fi_system_analyse(){ #v 21/11/2017 if [[ "$wayland" && "$EUID" -eq 0 ]]; then # évite erreur $DISPLAY en root wayland bootGraph="n/a en root sous wayland" else + touch "$file" 2>/dev/null + [ -w "$file" ] || file="/tmp/getInfo-graph-$RANDOM.svg" systemd-analyze plot > "$file" 2>/dev/null chown $user_: "$file" bootGraph="en console: **xdg-open $file** \n" @@ -3353,8 +3352,8 @@ prg_init(){ # 21/11/2017 if [[ "$wayland" && "$EUID" -eq 0 ]]; then f__info "Wayland ne permet pas de lancer des applications graphiques en Root" \ "seul l'utilisateur ayant démarré le serveur X peut permettre des connexions à celui-ci" \ - "le plus simple est de redémarrer le script en utilisateur pour déterminer certaines propriétés graphiques" \ - "ou essayer xhost si:localuser:root pour autoriser, xhost -si:localuser:root pour enlever cette autorisation" + "le plus simple est de redémarrer le script en utilisateur pour déterminer certaines propriétés graphiques ou essayer: \n" \ + "$GREEN""xhost si:localuser:root$BLUE pour autoriser,$GREEN xhost -si:localuser:root$BLUE pour enlever cette autorisation" fi # test SSH [[ "$SSH_CLIENT" || "$SSH_CLIENT" || "$SSH_CLIENT" ]] && ENV_SSH="ssh" diff --git a/scripts/getInfo_changelog.md b/scripts/getInfo_changelog.md index 96dc6c5..f104e05 100644 --- a/scripts/getInfo_changelog.md +++ b/scripts/getInfo_changelog.md @@ -3,7 +3,7 @@ * f__wcv, f_display_grep, f_dspl_md, f__wget_test, fscript_get_version, fscript_update * ! f__requis, fscript_install, f__scandir -## 2.42.1 21/11/2017 +## 2.42.3 21/11/2017 * révision: wayland, wayland/root, évolution wayland si plus de xprop, xrandr, xdpyinfo... * révision: fi_system, figet_de, fi_graph, figet_screen, fi_system_analyse prise en compte wayland