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 | |
parent | c5dc6637a0bd6c1b2547d8cfe101fbf96e1a24fe (diff) | |
download | fluxbox_paul-84505e56e2e8fee2454d3492782d08d555256e09.zip fluxbox_paul-84505e56e2e8fee2454d3492782d08d555256e09.tar.bz2 |
preliminary icon support in fluxbox-generate_menu
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | util/fluxbox-generate_menu.in | 10 |
2 files changed, 12 insertions, 2 deletions
@@ -1,5 +1,9 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 0.9.10: | 2 | Changes for 0.9.10: |
3 | *04/08/22: | ||
4 | * Preliminary basic support for icons in fluxbox-generate_menu (Han) | ||
5 | - put a <progname>.xpm into ~/.fluxbox/icons. e.g. Eterm.xpm | ||
6 | fluxbox-generate_menu.in | ||
3 | *04/08/19: | 7 | *04/08/19: |
4 | * Fixes to make nroff not report errors for fbsetbg.1 (Han) | 8 | * Fixes to make nroff not report errors for fbsetbg.1 (Han) |
5 | fbsetbg.1 | 9 | fbsetbg.1 |
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() { |