mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.42.2
This commit is contained in:
parent
d391a9e1cd
commit
52da9ff67e
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=2.42.1
|
version=2.42.3
|
||||||
date="21/11/2017"
|
date="21/11/2017"
|
||||||
projet="simpledeb"
|
projet="simpledeb"
|
||||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
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"
|
resolutions="n/a en root sous wayland"
|
||||||
providers="n/a en root sous wayland"
|
providers="n/a en root sous wayland"
|
||||||
current_preferred="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
|
else
|
||||||
# openGl / glxinfo
|
# openGl / glxinfo
|
||||||
if [ $( f__which glxinfo ) ]; then
|
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 bootTime cmd_bootTime cmt_bootTime pluriel text
|
||||||
local srvcFail cmd_srvcFail cmt_srvcFail qte_srvcFail isrvc srvcFail_list
|
local srvcFail cmd_srvcFail cmt_srvcFail qte_srvcFail isrvc srvcFail_list
|
||||||
local bootBlame cmd_bootBlame cmt_bootBlame bootCritic cmd_bootCritic cmt_bootCritic
|
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
|
local alert_srvcFail
|
||||||
# durée du précédent boot
|
# durée du précédent boot
|
||||||
bootTime=$( systemd-analyze time )
|
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
|
if [[ "$wayland" && "$EUID" -eq 0 ]]; then # évite erreur $DISPLAY en root wayland
|
||||||
bootGraph="n/a en root sous wayland"
|
bootGraph="n/a en root sous wayland"
|
||||||
else
|
else
|
||||||
|
touch "$file" 2>/dev/null
|
||||||
|
[ -w "$file" ] || file="/tmp/getInfo-graph-$RANDOM.svg"
|
||||||
systemd-analyze plot > "$file" 2>/dev/null
|
systemd-analyze plot > "$file" 2>/dev/null
|
||||||
chown $user_: "$file"
|
chown $user_: "$file"
|
||||||
bootGraph="en console: **xdg-open $file** \n"
|
bootGraph="en console: **xdg-open $file** \n"
|
||||||
|
@ -3353,8 +3352,8 @@ prg_init(){ # 21/11/2017
|
||||||
if [[ "$wayland" && "$EUID" -eq 0 ]]; then
|
if [[ "$wayland" && "$EUID" -eq 0 ]]; then
|
||||||
f__info "Wayland ne permet pas de lancer des applications graphiques en Root" \
|
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" \
|
"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" \
|
"le plus simple est de redémarrer le script en utilisateur pour déterminer certaines propriétés graphiques ou essayer: \n" \
|
||||||
"ou essayer xhost si:localuser:root pour autoriser, xhost -si:localuser:root pour enlever cette autorisation"
|
"$GREEN""xhost si:localuser:root$BLUE pour autoriser,$GREEN xhost -si:localuser:root$BLUE pour enlever cette autorisation"
|
||||||
fi
|
fi
|
||||||
# test SSH
|
# test SSH
|
||||||
[[ "$SSH_CLIENT" || "$SSH_CLIENT" || "$SSH_CLIENT" ]] && ENV_SSH="ssh"
|
[[ "$SSH_CLIENT" || "$SSH_CLIENT" || "$SSH_CLIENT" ]] && ENV_SSH="ssh"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* f__wcv, f_display_grep, f_dspl_md, f__wget_test, fscript_get_version, fscript_update
|
* f__wcv, f_display_grep, f_dspl_md, f__wget_test, fscript_get_version, fscript_update
|
||||||
* ! f__requis, fscript_install, f__scandir
|
* ! 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: 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
|
* révision: fi_system, figet_de, fi_graph, figet_screen, fi_system_analyse prise en compte wayland
|
||||||
|
|
Loading…
Reference in New Issue