summaryrefslogtreecommitdiff
path: root/util/fluxbox-generate_menu.in
diff options
context:
space:
mode:
Diffstat (limited to 'util/fluxbox-generate_menu.in')
-rwxr-xr-xutil/fluxbox-generate_menu.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in
index 112184b..a41ecbd 100755
--- a/util/fluxbox-generate_menu.in
+++ b/util/fluxbox-generate_menu.in
@@ -22,7 +22,7 @@
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE. 23# DEALINGS IN THE SOFTWARE.
24# 24#
25# $Id: fluxbox-generate_menu.in,v 1.26 2004/08/19 00:29:10 fluxgen Exp $ 25# $Id: fluxbox-generate_menu.in,v 1.27 2004/08/22 03:45:03 rathnor Exp $
26 26
27# 27#
28# Portability notes: 28# Portability notes:
@@ -143,7 +143,13 @@ case `uname` in
143esac 143esac
144 144
145append() { 145append() {
146 echo " $*" >> ${MENUFILENAME} 146 echo -n " $*" >> ${MENUFILENAME}
147 execname="`echo $*|cut -d\( -f2|cut -d\) -f1`"
148 if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then
149 echo "<${HOME}/.fluxbox/icons/$execname.xpm>" >> ${MENUFILENAME}
150 else
151 echo >> ${MENUFILENAME}
152 fi
147} 153}
148 154
149append_menu() { 155append_menu() {