yautostart cosmetic changes
parent
a3575a82b0
commit
0ecef91621
|
@ -11,7 +11,7 @@ case $LANG in
|
|||
FILE="Plik"
|
||||
NAME="Nazwa"
|
||||
COMMENT="Komentarz"
|
||||
NO_DESC="brak opisu"
|
||||
NO_DESC=""
|
||||
CANCEL="--button=Anuluj:1"
|
||||
OK="--button=Zastosuj:0"
|
||||
;;
|
||||
|
@ -22,7 +22,7 @@ case $LANG in
|
|||
FILE="Archivo"
|
||||
NAME="Nombrar"
|
||||
COMMENT="Comentar"
|
||||
NO_DESC="sin descripción"
|
||||
NO_DESC=""
|
||||
CANCEL="--button=Cancelar:1"
|
||||
OK="--button=Aceptar:0"
|
||||
;;
|
||||
|
@ -33,7 +33,7 @@ case $LANG in
|
|||
FILE="File"
|
||||
NAME="Name"
|
||||
COMMENT="Comment"
|
||||
NO_DESC="no description"
|
||||
NO_DESC=""
|
||||
CANCEL="--button=Cancel:1"
|
||||
OK="--button=OK:0"
|
||||
;;
|
||||
|
@ -54,10 +54,13 @@ results=$(mktemp --tmpdir autostart.XXXXXXXXXX)
|
|||
for f in $config_dir/autostart/*.desktop; do
|
||||
[ "$(grep -m 1 -e '^[[:blank:]]*Hidden' $f | cut -d = -f 2)" == "true" ] && echo false || echo true
|
||||
echo $f
|
||||
grep -m 1 -e '^[[:blank:]]*Name=' $f | cut -d = -f 2
|
||||
#grep -m 1 -e '^[[:blank:]]*Name=' $f | cut -d = -f 2
|
||||
name=$(grep -m 1 -e '^[[:blank:]]*Name=' $f | cut -d = -f 2)
|
||||
echo "<b>$name</b>"
|
||||
|
||||
#grep -m 1 -e '^[[:blank:]]*Exec' $f | cut -d = -f 2
|
||||
comment=$(grep -m 1 -e '^[[:blank:]]*Comment=' $f | cut -d = -f 2)
|
||||
[ ! -z "$comment" ] && echo $comment || echo "$NO_DESC"
|
||||
[ ! -z "$comment" ] && echo "<i>$comment</i>" || echo "$NO_DESC"
|
||||
done | yad --window-icon=distributor-logo-mabox --width=640 --height=500 --title="$TITLE" --image="gtk-execute" \
|
||||
--text="$DESC" --list --print-all --bool-fmt="t" \
|
||||
--checklist --column="$ENABLE:CHK" --column="$FILE:HD" --column="$NAME" --column="$COMMENT" --tooltip-column=4 $CANCEL $OK > $results
|
||||
|
|
Loading…
Reference in New Issue