From 94c823f9977e1cd457d31dbd6fb54f3397ef424d Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 22 Aug 2004 04:29:16 +0000 Subject: don't look for icons in ~ if installing --- util/fluxbox-generate_menu.in | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in index a41ecbd..666ea35 100755 --- a/util/fluxbox-generate_menu.in +++ b/util/fluxbox-generate_menu.in @@ -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,12 +143,16 @@ case `uname` in esac append() { - echo -n " $*" >> ${MENUFILENAME} - execname="`echo $*|cut -d\( -f2|cut -d\) -f1`" - if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then - echo "<${HOME}/.fluxbox/icons/$execname.xpm>" >> ${MENUFILENAME} + if [ -z "${INSTALL}" ]; then + echo -n " $*" >> ${MENUFILENAME} + execname="`echo $*|cut -d\( -f2|cut -d\) -f1`" + if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then + echo "<${HOME}/.fluxbox/icons/$execname.xpm>" >> ${MENUFILENAME} + else + echo >> ${MENUFILENAME} + fi else - echo >> ${MENUFILENAME} + echo " $*" >> ${MENUFILENAME} fi } -- cgit v0.11.2