Hello!

PCMan has written on Monday,  9 July, at 19:40:
[.......]
>So, I'm actually consider the possibility of deprecating menu-cache
>and replace it with a simple menu definition file.
>Then, we add a program to read xdg menu and generate the menu
>definition file based on installed applications.
>However, we don't do any directory monitoring.
>The packagers need to call the menu generation program in post-install
>scripts of the installed programs.

    I'm hardly believe that is better than it is now. Just imagine some
failure in post-inst script or whatever. Your generated menu will stay
unsynced forever. There were such problems in oldest versions of KDE
while it was half-manually driven. And keep it in sync in case user is
manually editing it and with some menu-editing tools is as good as hell.
So I would be strongly against it. If you want to change menu-cache with
something more lightweight - that could be good, but we should preserve
the API and functionality. So lets improve and simplify the menu-cache
tool which does a really good thing. What I could suppose: menu-cache
isn't a daemon anymore but some simple complex (for example look into the
font-cache utilities) and cache consists of two:
1) system-wide cache with list of all system menu definitions;
2) user-wide with list of definitions which supersede system ones.
System-wide will be updated by some triggers independently from packages
(manually or after each package manager call) - some updater will check
for any changes in directories of cache and if there are some changes it
will update cache. User-wide will be updated by tool which edits menu.
But those caches still are based on XDG desktop files. Library which is
used instead of decent one will just read those caches and still use the
same API. Yes, it's a much similar to your proposal but it doesn't change
any current API or functionality but just exclude daemon from circle.

    With best wishes.
    Andriy.

------------------------------------------------------------------------------
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