don't look for icons in ~ if installing

This commit is contained in:
rathnor 2004-08-22 04:29:16 +00:00
parent 84505e56e2
commit 94c823f997

View file

@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# $Id: fluxbox-generate_menu.in,v 1.27 2004/08/22 03:45:03 rathnor Exp $
# $Id: fluxbox-generate_menu.in,v 1.28 2004/08/22 04:29:16 rathnor Exp $
#
# Portability notes:
@ -143,6 +143,7 @@ case `uname` in
esac
append() {
if [ -z "${INSTALL}" ]; then
echo -n " $*" >> ${MENUFILENAME}
execname="`echo $*|cut -d\( -f2|cut -d\) -f1`"
if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then
@ -150,6 +151,9 @@ append() {
else
echo >> ${MENUFILENAME}
fi
else
echo " $*" >> ${MENUFILENAME}
fi
}
append_menu() {