diff options
author | rathnor <rathnor> | 2004-08-22 03:45:03 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-08-22 03:45:03 (GMT) |
commit | 84505e56e2e8fee2454d3492782d08d555256e09 (patch) | |
tree | ab937ff6131c7dec5fb967bedba95547bd4ec1ef /util/fluxbox-generate_menu.in | |
parent | c5dc6637a0bd6c1b2547d8cfe101fbf96e1a24fe (diff) | |
download | fluxbox_pavel-84505e56e2e8fee2454d3492782d08d555256e09.zip fluxbox_pavel-84505e56e2e8fee2454d3492782d08d555256e09.tar.bz2 |
preliminary icon support in fluxbox-generate_menu
Diffstat (limited to 'util/fluxbox-generate_menu.in')
-rwxr-xr-x | util/fluxbox-generate_menu.in | 10 |
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 | |||
143 | esac | 143 | esac |
144 | 144 | ||
145 | append() { | 145 | append() { |
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 | ||
149 | append_menu() { | 155 | append_menu() { |