summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-22 03:45:03 (GMT)
committerrathnor <rathnor>2004-08-22 03:45:03 (GMT)
commit84505e56e2e8fee2454d3492782d08d555256e09 (patch)
treeab937ff6131c7dec5fb967bedba95547bd4ec1ef /util
parentc5dc6637a0bd6c1b2547d8cfe101fbf96e1a24fe (diff)
downloadfluxbox_lack-84505e56e2e8fee2454d3492782d08d555256e09.zip
fluxbox_lack-84505e56e2e8fee2454d3492782d08d555256e09.tar.bz2
preliminary icon support in fluxbox-generate_menu
Diffstat (limited to 'util')
-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() {