This commit is contained in:
fluxgen 2002-11-17 15:56:37 +00:00
parent c515dc040a
commit d2b6c8e0fc

View file

@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# $Id: fluxbox-generate_menu,v 1.10 2002/11/12 19:19:14 fluxgen Exp $
# $Id: fluxbox-generate_menu,v 1.11 2002/11/17 15:56:37 fluxgen Exp $
[ `id -u` -eq 0 ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
@ -92,14 +92,14 @@ append_menu() {
}
append_submenu() {
# empty line for readability
# only an empty line in templates
[ ${REMOVE} ] && echo >> ${FILENAME}
append_menu "[submenu] ($1)"
}
append_menu_end() {
append_menu "[end]"
# empty line for readability
# only an empty line in templates
[ ${REMOVE} ] && echo >> ${FILENAME}
}
@ -527,7 +527,7 @@ append_menu_end
# gnome menu
if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
append_submenu ${GNOMEMENUTEXT}
for a in ${GPKGDATADIR}/gnome/apps/* ; do
for a in `ls ${GPKGDATADIR}/gnome/apps/` ; do
if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then
append_submenu "${a}"
menu_entry_dir "${GPKGDATADIR}/gnome/apps/${a}"
@ -541,7 +541,7 @@ fi
# kde submenu
if [ -d ${KPKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
append_submenu ${KDEMENUTEXT}
for a in ${KPKGDATADIR}/applnk/* ; do
for a in `ls ${KPKGDATADIR}/applnk/` ; do
if [ -d ${KPKGDATADIR}/applnk/"${a}" ]; then
append_submenu "${a}"
for x in ${KPKGDATADIR}/applnk/"${a}"/*; do