* Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's.
@ 2003-05-30 15:09 Spider
2003-05-31 17:17 ` Svyatogor
0 siblings, 1 reply; 4+ messages in thread
From: Spider @ 2003-05-30 15:09 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 5216 bytes --]
hi folks, this came as a reply when I bounced the initial mail to a
friend of mine whom I have been discussing implementation and so on with
(quite a while before any discussion on the list)
//Spider
begin forwarded message:
Date: Fri, 30 May 2003 17:02:25 +0200
From: redhog <redhog@jamtlinux.net>
To: Spider <spider@gentoo.org>
Subject: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo
wm's.
Kan du fwd:a mitt svar kanske?
-----
Hi!
First of all both Debian and Mdk does have such systems. But they are
different, with different file-formats. In addition,
http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html
specifies a third format, which is used by GNOME and KDE at the moment.
The system in Debian is quite broken, and the implementation (the hack
to convert from their format to the ones of the different
window-managers) even more so. Esepecially when it comes to translating
and transforming the menu.
We at TakeIT/Jamtlinux are currently using Debian (don't hate us for
that folks!) for a system for high-schools, and thus translation into
our native language, aswell as "dumbing-down" the menu (moving all but
the most frequently used apps to a special sub-menu), is very important
for our application. As the current Debian hack is so broken, I decided
to hack a new implementation of it, in Python. I succeeded with a
minimal version (supporting the same input format and output to the
GNOME/KDE format) of this in just an eavening (the old hack was written
in C, and thus much clumsier than mine), and continued with support for
different input sources, like the one specified by freedesktop.org.
The program reads a set of menu-sources (files or directory structures)
of different formats using input-modules, stores all tanslations find in
the input-files and combines them with ones provided in special
translation/language-packs, filters the entries using simple
python-expressions, transforms them (for example their paths down
through the menu-tree) using other such expressions, combines all the
entries to a tree, translates them using the stored translations, and
finally exports them to one or more destination files/directory
structures using output-modules for the different fomats.
This hack is totally independent of the Debian distribution as such (it
depends only on the Python language), and I wouldn't mind if you
included it in your distribution and/or added some more input our output
modules.
/Egil
>Hello Folks!
>I have recently been thinking on implementing the menu system for
>gentoo, something like what we have in mandrake (I guess it came from
>debian). At the moment when a user installs a new app he needs to
>figure out what is the name of the binary he needs and then add it to
>the menu of his window manager(s). This is done automatically only if
>you're installing an app for your desktop (i.e. gnome apps on gnome,
>kde apps on kde). The whole idea is make thins process automatic - the
>user installs a programm foo, log out back in and sees the menu entry
>in all window managers.
>
>Here is my suggestion on who it should work.
>On the system we have a central location for the menu, say /etc/menu.d/
>Here all subfolders represent categories and files - menu entries
>respectively. The file contains three entries, something like this:
>
>Name=MyApp
>Command=/usr/bin/myapp
>Icon=icon.png
>
>These entries are created when a pckage is merged by a special domenu
>command in a ebuild. E.g. domenu Editors, GVim, gvim
>In addition to the categories folder the menu.d/ would contain a folder
>"rules", which has the ebuild style files describing how the menus for
>each installed wm/de should be generated. It would look like this:
>
>init_menu() {
>#Do all nessecary init. here. Eg. touch the menu file.
>}
>
>start_menu() {
>#Wright whatever should be in heading of the menu.
>#Especially important for one file menus file fluxbox.
>}
>
>write_entry() {
>#Ovious. Here we have ${Cat} ${Name} ${Com} vars defined and set.
>}
>
>end_menu() {
>#whatever should be done to finish the menu.
>}
>
>Now the most important step: genrating users menu. First of all a user
>should have a choice of whether to use this system or not. If the user
>likes it he should add a call to syncmenu (a bash scipt) to the
>.bash_profile or whatever file.
>
>When the syncmenu starts it first of all syncronises the ~/.menu with
>/etc/menu.d (It will basically sync everything except the files that
>have Custom tag - means edited by user and don't touch). Then this file
>sources the files in the /etc/menu.d/rules and calls the functions in
>the order: init, start, write (for every entry), end.
>
>I guess the system is quite flexible and allows to support any wm,
>irrespectively of the menu style it uses. However, before starting
>woking on it I just wanted to get some feedback on the idea.
>
>Ok, waiting for your criticism ;)
>
>--
>Sergey Kuleshov <svyatogor@gentoo.org>
>Let the Force be with us!
>
>
>--
>gentoo-dev@gentoo.org mailing list
>
>
>
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's.
2003-05-31 17:17 ` Svyatogor
@ 2003-05-31 16:48 ` Spider
2003-06-01 21:45 ` Spider
1 sibling, 0 replies; 4+ messages in thread
From: Spider @ 2003-05-31 16:48 UTC (permalink / raw
To: gentoo-dev; +Cc: redhog
[-- Attachment #1: Type: text/plain, Size: 3330 bytes --]
CC'ing him here, he promised me the sourcecode .
//Spider
begin quote
On Sat, 31 May 2003 17:17:28 +0000
Svyatogor <svyatogor@gentoo.org> wrote:
> That's interesting! Could you please send me your friends prog? As far
> as I understand he doesn't mind releasing the source.
>
> On Friday 30 May 2003 15:09, Spider wrote:
> > hi folks, this came as a reply when I bounced the initial mail to a
> > friend of mine whom I have been discussing implementation and so on
> > with(quite a while before any discussion on the list)
> >
> >
> > //Spider
> >
> >
> >
> >
> > begin forwarded message:
> >
> > Date: Fri, 30 May 2003 17:02:25 +0200
> > From: redhog <redhog@jamtlinux.net>
> > To: Spider <spider@gentoo.org>
> > Subject: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo
> > wm's.
> >
> >
> > Kan du fwd:a mitt svar kanske?
> >
> > -----
> > Hi!
> > First of all both Debian and Mdk does have such systems. But they
> > are different, with different file-formats. In addition,
> > http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.
> >html
> >
> > specifies a third format, which is used by GNOME and KDE at the
> > moment. The system in Debian is quite broken, and the implementation
> > (the hack to convert from their format to the ones of the different
> > window-managers) even more so. Esepecially when it comes to
> > translating and transforming the menu.
> > We at TakeIT/Jamtlinux are currently using Debian (don't hate us for
> > that folks!) for a system for high-schools, and thus translation
> > into our native language, aswell as "dumbing-down" the menu (moving
> > all but the most frequently used apps to a special sub-menu), is
> > very important for our application. As the current Debian hack is
> > so broken, I decided
> >
> > to hack a new implementation of it, in Python. I succeeded with a
> > minimal version (supporting the same input format and output to the
> > GNOME/KDE format) of this in just an eavening (the old hack was
> > written in C, and thus much clumsier than mine), and continued with
> > support for different input sources, like the one specified by
> > freedesktop.org. The program reads a set of menu-sources (files or
> > directory structures) of different formats using input-modules,
> > stores all tanslations find in
> >
> > the input-files and combines them with ones provided in special
> > translation/language-packs, filters the entries using simple
> > python-expressions, transforms them (for example their paths down
> > through the menu-tree) using other such expressions, combines all
> > the entries to a tree, translates them using the stored
> > translations, and finally exports them to one or more destination
> > files/directory structures using output-modules for the different
> > fomats. This hack is totally independent of the Debian distribution
> > as such (it depends only on the Python language), and I wouldn't
> > mind if you included it in your distribution and/or added some more
> > input our output
> >
> > modules.
> > /Egil
>
> --
> Sergey Kuleshov <svyatogor@gentoo.org>
> Let the Force be with us!
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's.
2003-05-30 15:09 Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's Spider
@ 2003-05-31 17:17 ` Svyatogor
2003-05-31 16:48 ` Spider
2003-06-01 21:45 ` Spider
0 siblings, 2 replies; 4+ messages in thread
From: Svyatogor @ 2003-05-31 17:17 UTC (permalink / raw
To: gentoo-dev
That's interesting! Could you please send me your friends prog? As far as I
understand he doesn't mind releasing the source.
On Friday 30 May 2003 15:09, Spider wrote:
> hi folks, this came as a reply when I bounced the initial mail to a
> friend of mine whom I have been discussing implementation and so on with
> (quite a while before any discussion on the list)
>
>
> //Spider
>
>
>
>
> begin forwarded message:
>
> Date: Fri, 30 May 2003 17:02:25 +0200
> From: redhog <redhog@jamtlinux.net>
> To: Spider <spider@gentoo.org>
> Subject: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo
> wm's.
>
>
> Kan du fwd:a mitt svar kanske?
>
> -----
> Hi!
> First of all both Debian and Mdk does have such systems. But they are
> different, with different file-formats. In addition,
> http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.
>html
>
> specifies a third format, which is used by GNOME and KDE at the moment.
> The system in Debian is quite broken, and the implementation (the hack
> to convert from their format to the ones of the different
> window-managers) even more so. Esepecially when it comes to translating
> and transforming the menu.
> We at TakeIT/Jamtlinux are currently using Debian (don't hate us for
> that folks!) for a system for high-schools, and thus translation into
> our native language, aswell as "dumbing-down" the menu (moving all but
> the most frequently used apps to a special sub-menu), is very important
> for our application. As the current Debian hack is so broken, I decided
>
> to hack a new implementation of it, in Python. I succeeded with a
> minimal version (supporting the same input format and output to the
> GNOME/KDE format) of this in just an eavening (the old hack was written
> in C, and thus much clumsier than mine), and continued with support for
> different input sources, like the one specified by freedesktop.org.
> The program reads a set of menu-sources (files or directory structures)
> of different formats using input-modules, stores all tanslations find in
>
> the input-files and combines them with ones provided in special
> translation/language-packs, filters the entries using simple
> python-expressions, transforms them (for example their paths down
> through the menu-tree) using other such expressions, combines all the
> entries to a tree, translates them using the stored translations, and
> finally exports them to one or more destination files/directory
> structures using output-modules for the different fomats.
> This hack is totally independent of the Debian distribution as such (it
> depends only on the Python language), and I wouldn't mind if you
> included it in your distribution and/or added some more input our output
>
> modules.
> /Egil
--
Sergey Kuleshov <svyatogor@gentoo.org>
Let the Force be with us!
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's.
2003-05-31 17:17 ` Svyatogor
2003-05-31 16:48 ` Spider
@ 2003-06-01 21:45 ` Spider
1 sibling, 0 replies; 4+ messages in thread
From: Spider @ 2003-06-01 21:45 UTC (permalink / raw
To: svyatogor; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
begin quote
On Sat, 31 May 2003 17:17:28 +0000
Svyatogor <svyatogor@gentoo.org> wrote:
> That's interesting! Could you please send me your friends prog? As far
> as I understand he doesn't mind releasing the source.
http://jamtlinux.org/software/cookmenus/
Here's the code :)
appears it reads .desktop format (which is nice and standard (Er) and
has support for groups and translations..) and then can betweaked to
generate menu's for other desktops...
//Spider
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-01 21:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 15:09 Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's Spider
2003-05-31 17:17 ` Svyatogor
2003-05-31 16:48 ` Spider
2003-06-01 21:45 ` Spider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox