2012/7/9 PCMan <[email protected]>:
...
> Pros:
>  1. We only have one single simple menu definition file which loads really 
> fast.
>  2. We don't need to monitor tons of files just for small and rare changes.
>  3. Menu editing can become much simpler and more flexible.

I'm the maintainer of LXDE on slackbuilds.org, that offer build
scripts for creating LXDE packages on Slackware.
I'm speaking personally, my opinions don't reflect necessarily the
ones of other maintainers of the site.
First thing,  I like all the pros :)

> Cons:
>  1. Some distros or other OSes may have no post-install hooks

no prob here, we have a doinst.sh script that take care of that.

>  2. For manually compiled and installed programs, the user needs to
> call the menu generation tool, which is very bad.

I agree, also it would probably need to run it as root to do it system-wide.

>  3. It's hard to let every packages containing a *.desktop to call our
> menu generating tool after their installation

that would be very difficult here: I can put the specific menu
generation script in the postinst hook of lxde packages but I strongly
doubt it will be included in every package containing a *.desktop
file.

>  4. It's not possible to drop freedesktop.org menu completely as it
> provides much useful info. So we still need to generate the menu based
> on it.

here we follow freedesktop.org's specifications, so we have in the
above mentioned post-install script for every package containing a
*.desktop file an entry like this that takes care of the mime types

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

maybe, but I really don't know if this has been discussed already, the
most practical thing that comes to mind is that
update-desktop-database should take care of generating also the text
menu file, but this should definitely go in freedesktop.org's
specifications (and decided there)...

Matteo

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to