If you're looking at doing your own .directory and .menu files, rather just use a Portland project tool like xdg-desktop-menu if you can. The menu specification is very complex.
On Sun, Jul 1, 2012 at 12:06 PM, jupiter <jupiter....@gmail.com> wrote: > Thanks Kevin and Damjan. Of cause, not default locations. If I > understand correctly, the top - down desktop structure is from > directory entries -> menu / submenu -> desktop entries. All I need do > are: > > (a) Create an additional directory myapp.directory to contain a > submenu myapp.menu. > > (b) Create a myapp.menu file to includes all my application desktop > entries in different locations. > > (c) Add the mayapp.directory to all users of a group. > > Great and thank you very much. > > Cheers. > > Jupiter > > > Thank you. > > Cheers. > > Jupiter > > On 6/30/12, Kevin Krammer <kram...@kde.org> wrote: >> On Saturday, 2012-06-30, Damjan Jovanovic wrote: >>> On Sat, Jun 30, 2012 at 3:28 AM, jupiter <jupiter....@gmail.com> wrote: >>> > Sorry for asking a simple quesiton, I am new to the freedesktop. I >>> > have read the latest spec, but still not clear if I can put >>> > application *.desktop to different locations such as >>> > /usr/local/application1/application1.desktop, >>> > /usr/local/application2/application2.desktop, etc.. If it can, what I >>> > should to do to make those applications listed in desktop based on >>> > user ID or group ID? Appreciate any helps. >>> > >>> > Thank you. >>> > >>> > Kind regards, >>> > >>> > Jupiter >>> >>> /usr/local/share/applications is for *.desktop files that appear in >>> every user's menus. >>> $HOME/.local/share/applications is for *.desktop files that appear >>> only in that particular user's menus. >>> Both have to have a flat structure (no further subdirectories). >>> No per-group-ID *.desktop files are possible. >> >> Not with default locations but of course one could have additional >> directories, e.g. one per group that needs differentiation, and add that >> directory to the XDG_DATA_DIRS variable for all users of those groups. >> >> Cheers, >> Kevin >> >> -- >> Kevin Krammer, KDE developer, xdg-utils developer >> KDE user support, developer mentoring >> > _______________________________________________ > xdg mailing list > xdg@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/xdg _______________________________________________ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg