daniel at freedesktop.org
Tue Feb 7 17:55:12 EET 2006
On Tue, Feb 07, 2006 at 04:52:39PM +0100, Stanislav Brabec wrote:
> Daniel Stone wrote:
> > On Tue, Feb 07, 2006 at 04:40:56PM +0100, Stanislav Brabec wrote:
> > > And what about adding pkg-config file desktop-file-utils.pc, as other
> > > packages do. It can provide correct value of prefix, bindir etc.
> > Surely this just shifts the problem to a more obscure one? This way,
> > you'll need to keep $(prefix)/lib/pkgconfig in $PKG_CONFIG_PATH, rather
> > than only having to remember to update $PATH.
> Yes, but it is already done in products using obscure paths.
> In difference to PATH (and "which" binary), pkg-config is intended to
> answer questions like:
> - Is package desktop-file-utils installed?
if which desktop-file-utils >/dev/null 2>&1; then
> - Where are desktop-file-utils binaries installed?
> - Which version of desktop-file-utils we are using?
I think it's overkill for your requirements, personally.
More information about the xdg