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