Re: [proaudio] Script to generate fvwm-crystal menu entries |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
- To: proaudio@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [proaudio] Script to generate fvwm-crystal menu entries
- From: Dominique Michel <dominique.michel@xxxxxxxxxxxx>
- Date: Thu, 1 Mar 2007 19:41:36 +0100
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEXy8ubtkoXo7+b1+fbN cGKCeWDtamweFA8eMkmKPkPtvcWRoqyV0Pn7AAACbElEQVQ4jXXTMWvbQBQA4MOlizsdXEXp KAi09mKcLZ0EJxONDRJVkikg9AtqTm63gtHDmVJs1GsnC0JiaTMJGN2f67uzznJb+gZj9PFO 7717IqdtvCAmem4bxMLp/2BEyEBF1+U/0H8uhI6rv+BVLNrY/gH9T0L8yAxk2yMY3YuZxDCn TY/gpBByyTGktIcZOIvFjPNJmqYJDwrx3cIoBrE0zzG4FF8tfBAwM+DonKCYWjgROZ6Upjcm 5Qje58JAmlKKGfIAjzaDUuogZBY2Bjg14eDbywMIqZvwqgqFBcVFB0seYONLb00ZZlh4p0F6 FHNoUMyKAzxowJSQTyj+XloYs3MN3GeMpzyYSTMshLM00ODpWlPp4SDbqs4cViDcGAgmlK/a PsaOg7DvIQ3wzANMqB/iQW/XTkoTLO6XhSeHUoQKe+NLjyY/Ldx7CW2D4WTYhZ3V0GP64RpP Q/E66IUWMLj3+nDn4w2ejMACyXFeHZy6ETcZehc49bv1GQ/0bazNuzm97mDkhnoie9i30WYM w/YCnYT7Fx308s98n0IT//Jod1+aOzdzYXLVbftol+PC+REG3u+0AxdEtuSMB6G+DLGwMH4E vXGmJn8VCLM9LhmrOAMQYt5Wi/DFgIC52iFkUzMpDVmjAaDZRGC+JGwDqzJ/G5fUUcWZAaE7 YfvPLYtIU1Wb4A2IeS7uDMgcIFutiCr766qGfKHyuxvTIERKXVNSN27lDgCuBuojlpxIyJV6 ritS1uWWuHF2Ww7qcIKbqEFVNbmtmm3vGSCHbVXjikrY3SpVxwQWw2aIjwG+ueXTJDmHeK6a HfwGyU5ZSlGeSRQAAAAASUVORK5CYII=
Le Thu, 1 Mar 2007 17:42:04 +0100,
Thomas Kuther <gimpel@xxxxxxxxxxxxxxxx> a écrit :
> On Do, 01.03.07 14:32 Dominique Michel <dominique.michel@xxxxxxxxxxxx>
> wrote:
>
> > I am slowly making a script to generate fvwm-crystal menu entries
> > from desktop files. I am actually making the part that will sort the
> > Categories in order to get something useful to generate the menu
> > entries with. The worst is not to make the script but to interpret
> > freedesktop spec.
> >
> > If I understand well what is on
> > http://standards.freedesktop.org/menu-spec/latest/apa.html
> > it must be only one valid main category with the exception of Audio
> > that must have AudioVideo and Video that must have AudioVideo.
> >
> > That implies at something as Category=Audio;AudioVideo is valid,
> > Category=Video;AudioVideo is valid, but
> > Category=Audio;AudioVideo;Video is not valid, Category=Audio;Video is
> > not valid and Category=Graphics;Office is not valid.
> >
> > Can anyone comment on this?
> >
> > --
> > Dominique Michel
> >
> > --
> > N.B.: Tous les emails que je reçois sont filtrés par spamassassin
> > avant de me parvenir.
>
> Sounds resonable, as Audio;Video; == AudioVideo. And both Audio and
> Video are subcategories of AudioVideo.
Not exactly.
quote:
The list of Main Categories consist of those categories that every conforming
desktop environment MUST support. By including one of these categories in an
application's desktop entry file the application will be ensured that it will
show up in a section of the application menu dedicated to this category. The
list of Additional Categories provides categories that can be used to provide
more fine grained information about the application. Additional Categories
should always be used in combination with one of the Main Categories.
endquote
It is a list og main categories. In it, we can read:
Audio Desktop entry must include AudioVideo as well
Video Desktop entry must include AudioVideo as well
That implies at Audio;AudioVideo;Video will not be valid. It can be discussed
because they write first "By including one of these categories", not "By
including only one of these categories"
What my script do for now is:
Audio+AudioVideo+Video=> non valid, skip. (easy to change)
Audio+AudioVideo=> create the entry in Audio
Video+AudioVideo=> create in Video
On of those 3 alone=> create in the given cat.
In all the other cases, if it is more as one main categories, the entry will be
created in the first found main cat.
If a desktop file contain only a sub cat but no main cat, => non valid, skip.
The good news is at it begin to work with the new type of desktop file. Remain
a few things to debug and the old type of desktop files to do.
The icon generation was the easy part. The worst are many kde program using Qt
or KDE as main cat when those keys are sub cat, or missing OnlyShowIn=KDE key.
Ciao,
Dominique
>
> Tom
--
Dominique Michel
--
N.B.: Tous les emails que je reçois sont filtrés par spamassassin avant de me
parvenir.