On Mon, Nov 02, 2015 at 11:10:11PM +0100, Bram Moolenaar wrote:
> [...]
> 
> I also have /usr/share/applications, no /usr/local/share/applications.
> 
> Perhaps we need to try a few directories, but we also want to give the
> user a chance to change the target directory. Perhaps we need a specific
> configure check.

If $prefix/share/applications doesn't exist, just create it.

A XDG_DATA_DIRS setting specifies where to search for
applications/*.desktop files[1], and it defaults to ~/.local/share,
/usr/local/share and /usr/share on my system.

That setting may not be easy to find out. And I don't think a script can
determine it automatically when e.g. someone wants to install Vim to
/opt and has that file placed where they want.

[1]: https://developer.gnome.org/desktop-entry-spec/#desktop-file-id

-- 
Best regards,
lilydjwg

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui