Link Here
|
330 |
# echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" |
330 |
# echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" |
331 |
if [ -f "$entry_icon" ]; then |
331 |
if [ -f "$entry_icon" ]; then |
332 |
# if icon exists and entry does not already exists, add it |
332 |
# if icon exists and entry does not already exists, add it |
333 |
if ! grep -q -m 1 "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then |
333 |
if ! grep -q -m 1 "^.${execname}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then |
334 |
printf "\"${entry_exec}\" \t <${entry_icon}>\n" >> $ICONMAPPING |
334 |
printf "\"${execname}\" \t <${entry_icon}>\n" >> $ICONMAPPING |
335 |
else |
335 |
else |
336 |
: echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING |
336 |
: echo "# mapping already exists for ${execname}" >> $ICONMAPPING |
337 |
fi |
337 |
fi |
338 |
else |
338 |
else |
339 |
echo "# No icon file found for $entry_exec" >> $ICONMAPPING |
339 |
echo "# No icon file found for $execname" >> $ICONMAPPING |
340 |
fi |
340 |
fi |
341 |
} |
341 |
} |
342 |
|
342 |
|