fix comment parsing in Mabox XDG Autostart editor
parent
651e13bafd
commit
6ec137c037
|
@ -62,7 +62,7 @@ for f in $config_dir/autostart/*.desktop; do
|
|||
|
||||
#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 "<i>$comment</i>" || 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" --uri-handler=xdg-open \
|
||||
--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