Package: menu
Version: 2.1.43
Severity: normal
Hello,
I would like to generate by update-menus my customized toolbar for IceWM
(1.3.7~pre2-1+b1), but I can't use any "icon" entry from menu file to folder
(section) items.
For description, I have created following entries in ~/.menu directory:
?package(local.image): \
needs="X11"\
title="Image"\
section="Applications"\
command="" \
icon=geeqie.xpm
?package(local.geeqie):\
needs="X11"\
title="Geeqie"\
section="image"\
icon="geeqie.xpm"\
command=/usr/bin/geeqie
Then
~ $ update-menus --stdout >| /tmp/menu; grep 'icon="geeqie\.xpm"' /tmp/menu
command="" icon="geeqie.xpm" needs="X11" package="local.image"
section="Applications" title="Image"
command="/usr/bin/geeqie" icon="geeqie.xpm" needs="X11" package="local.geeqie"
section="image" title="Geeqie"
Generated output contains "icon" assignment, but this assigned value is ignored
by my ~/.menu-methods/icewm-common in "startmenu" entry. Entries containing
non-empty "command" value have $icon as should be:
~ $ ~/.menu-methods/icewm-common < /tmp/menu; grep -A2 'menu "image"'
~/.icewm/generated_toolbar
menu "image" []- {
prog "Geeqie" "geeqie.xpm" /bin/sh -c "/usr/bin/geeqie"
}
where ~/.menu-methods/icewm-common is:
#!/usr/bin/install-menu
compat="menu-1"
!include menu.h
outputencoding="LOCALE"
function iconordash()=ifelse(icon(),icon(),"-")
function q($com)=esc($com,"\"")
supported
x11= "\tprog \"" q(title()) "\"\t\"" iconordash() "\"\t /bin/sh -c \""
q($command) "\"\n"
text= "\tprog \"" q(title()) "\"\t\"" iconordash() "\"\t /bin/sh -c \""
q(term()) "\"\n"
wm= "\trestart \"" q(title()) "\"\t\"" iconordash() "\"\t /bin/sh -c \""
q($command) "\"\n"
endsupported
startmenu=ifneq($title,"Debian menu","menu \"" q(title()) "\" " "[" $icon "]"
iconordash() " {\n")
endmenu=ifneq($title,"Debian menu","}\n")
genmenu="generated_toolbar"
#submenutitle=$icon
#submenutitle=" menu \"" $title "\" " $icon "{\n"
preoutput="\n"
rootprefix="/etc/X11/icewm/"
mainmenutitle="Debian menu"
treewalk="(M)"
userprefix=".icewm"
# end of file
Brackets around $icon are only for debugging.
Removing empty command assignment from menu file doesn't fix the
problem.
How to enable interpreting $icon value in startmenu entries?
Regards
Tomasz
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages menu depends on:
ii dpkg 1.15.8.4 Debian package management system
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-11 GCC support library
ii libstdc++6 4.4.4-11 The GNU Standard C++ Library v3
menu recommends no packages.
Versions of packages menu suggests:
ii gksu 2.0.2-3 graphical frontend to su
ii kdebase-bin 4:4.4.5-1 core binaries for the KDE base app
ii kdebase-runtime 4:4.4.5-1 runtime components from the offici
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]