Can *.desktop files be located in /usr/local/applications?
damjan.jov at gmail.com
Sun Jul 1 22:11:22 PDT 2012
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.hce at 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
> (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.
> Thank you.
> On 6/30/12, Kevin Krammer <krammer at kde.org> wrote:
>> On Saturday, 2012-06-30, Damjan Jovanovic wrote:
>>> On Sat, Jun 30, 2012 at 3:28 AM, jupiter <jupiter.hce at 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.
>> Kevin Krammer, KDE developer, xdg-utils developer
>> KDE user support, developer mentoring
> xdg mailing list
> xdg at lists.freedesktop.org
More information about the xdg