Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] Automated menu-generating with invoke

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Karsten Behrmann <BearPerson AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] Automated menu-generating with invoke
  • Date: Wed, 10 Sep 2003 23:23:17 +0200

As you might know, I have written a script which (should) generate menus
from all installed spells.
I would like to start a discussion about the functions and fundamentals
of this script.
So this is the status quo:
- All grimoires->sections->spells are made into folders, then for all
installed spells we look through the install log, and all files will
be tested on:
+ executable bit set
+ not a directory
+ `file $thisfile` says the file is executable
when all these tests are successful, then the file will be made into a
menu entry.
- Additionally, for each entry, it is saved whether it should be started
in an xterm. The initial state for this is determined by testing if
`ldd $thisfile` says libX11 is linked in
- The menu is saved centrally in an internal format, can be edited, and
menus generated from it.

The "heuristics" used for making an initial menu are horrible,
but we don't have anything better right now. A suggestion is we add
.desktop file(s) to each spell, from which everything is generated.

Also, nearly no WMs are supported yet (only blackbox & openbox, xfce4,
IceWM) I will need volunteers here that tell me what format menus for
the other WMs have

So, any further suggestions?
So Far,
Karsten Behrmann


Attachment: pgpzfI8T9LWB_.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page