fix comment parsing in Mabox XDG Autostart editor

master
Daniel Napora 2022-05-21 10:08:30 +02:00
parent 651e13bafd
commit 6ec137c037
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ for f in $config_dir/autostart/*.desktop; do
#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 "<i>$comment</i>" || echo "$NO_DESC" [ ! -z "$comment" ] && echo "<i>${comment/&/&amp;}</i>" || echo "$NO_DESC"
done | yad --window-icon=distributor-logo-mabox --width=640 --height=500 --title="$TITLE" --image="gtk-execute" --uri-handler=xdg-open \ 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" \ --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