Re: Debian menu format

From: Carl Worth <cworth_at_east.isi.edu>
Date: Wed, 27 Jun 2001 12:05:09 -0400

James ''Wez'' Weatherall writes:
> Cool. If you want to post me the foal script then I'll add it to the ipkg.

Hrm...

I've got it working without syntax errors, but foal doesn't seem to
like the generated menu. No real documentation yet, things have just
changed to be in python syntax pretty much. Let me know if you can't
figure anything out. (And yes, the call to the interpreter at the top
is bizarre -- I'll try to straighten this out later).

-Carl

PS. Oh, and I'll be announcing menu-tiny in the next few minutes so
that you can actually test this.

#!/usr/bin/python /usr/sbin/install-menu

# - install-menu configuration file for Foal 0.6

compat="menu-tiny"

# - Supported program types
def x11(m):
    return 'menuitem("' + m.title + '", "' + m.icon + '", "' +
m.command + '")\n'

def text(m):
    return 'menuitem("' + m.title + '", "' + m.icon + '", "' +
    'x-terminal-emulator -T ' + m.title + '" -e ' + m.command + '")\n'

def wm(m):
    return 'menuitem("' + m.title + '", "' + m.icon + '", "' +
    m.command + '")\n'

Supported = (x11, text, wm)

# - Submenu handling
def startmenu(m):
    return 'startmenu("' + m.title + '", "' + m.icon + '")\n'
    
def endmenu(m):
    return 'endmenu()\n'

rootsection=""

rootprefix="/etc/foal/"
userprefix=".foal"

genmenu= "foalrc.auto"

treewalk="(cm)"
Received on Wed Jun 27 2001 - 09:00:51 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:27 EDT