Package: menu
Version: 2.1.24
Severity: wishlist
Hello Maintainer,
I am rewriting the fvwm menu-method to support sidebars.
Since I have localized sidebars in the form of
20x200.debmenu.CC._debian_apps.xpm
I need to check, whether the right file exist. I use for this the
${LANGUAGE] environement variable (which is exploded if more then
one language is there).
The construct in the /etc/menu-methods/tdmenu is very heavy and too
complex since I have fallback constructs using ifelsefile() and ...
Becaue functions can not splited over several lines (returns heavy
errors) and they are now over 800 characters long I put the function
into a shell script and execute it with:
----[ '/etc/menu-methods/tdmenu' ]----------------------------------
function getsidebar($section)=shell("tdmenu --getsidebar $section" )
startmenu= "DestroyMenu \"" replacewith($section," ","_") "\"\n" \
"AddToMenu \"" replacewith($section," ","_") \
getsidebar(tolower(replacewith($section, "/ ", "__"))) \
" \"" title() cond_surr(icon(),"%","%") "\" Title Top\n" \
"+ \"\" TearMenuOff\n"
endmenu= "\n"
--------------------------------------------------------------------
so if the section is /Debian/Apps/Databases the construct
tolower(replacewith($section, "/ ", "__"))
transform it to
_Debian_Apps_Databases
and in the shell function it will be checked for
${LANGUAGE} => 20x200.debmenu.CC._debian_apps.xpm
or if not installed the default
20x200.debmenu.en._debian_apps.xpm
which schould be always availlable of at last not least
20x200.debmenu.en._debian_default_menu.xpm
if this fails too, it return an empty string and no sidebar will be
added.
What I like to see is that $arg is past into the shell() function.
Oh yes, I have already tried
--------------------------------------------------------------------
startmenu= "DestroyMenu \"" replacewith($section," ","_") "\"\n" \
"AddToMenu \"" replacewith($section," ","_") \
shell("tdmenu --getsidebar " (tolower(replacewith($section, "/ ", "__"))) ) \
--------------------------------------------------------------------
but it does not work (in other functions I can use such construct)
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
-- System Information
Debian Release: 3.1
Kernel Version: Linux michelle1.private 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC
2005 i686 GNU/Linux
Versions of the packages menu depends on:
ii dpkg 1.10.28 Package maintenance system for Debian
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries and Timezone
ii libgcc1 3.4.3-13 GCC support library
ii libstdc++5 3.3.5-13 The GNU Standard C++ Library v3
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]