getInfo 2.42.2

This commit is contained in:
kyodev 2017-11-22 07:29:18 +01:00
parent d391a9e1cd
commit 52da9ff67e
2 changed files with 7 additions and 8 deletions

View File

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

View File

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