On Mon, 16 May 2011 18:42:58 +0200
Lennart Poettering <[email protected]> wrote:

> Heya,
> 
> so here's a thing to think about before standardizing any new places
> where applications can be placed: how to include them in the search
> paths? Search paths here can refer to various search paths, like the
> venerable $PATH, to $LD_LIBRARY_PATH, to the path where PHP looks for
> its plugins, or Python does, to the places where icon .pngs are
> searched for, or D-Bus service files, or .desktop files, or mozilla
> looks for the flash plugin, or man for the man pages.

Very relevant point!

> Some parts of the system look in /usr/{lib,share}/something AND
> /usr/local/{lib,share}/something. Many programs only look on the
> former. But nothing looks in /opt.

Which is annoying, as the /opt Requirements section even makes
provision for directories they can search:

> The
> directories /opt/bin, /opt/doc, /opt/include, /opt/info, /opt/lib,
> and /opt /man are reserved for local system administrator use.
> Packages may provide "front-end" files intended to be placed in (by
> linking or copying) these reserved directories by the local system
> administrator, but must function normally in the absence of these
> reserved directories.

(along with /etc/opt and /var/opt).

> The XDG basedir spec currently declares that /usr/share/something and
> /usr/local/share/something need to be searched.

*/share would appear to be one of the directories the current fhs
doesn't even mention for /opt unfortunately.

> An easy way out would be to build on the XDG-base dir spec and declare
> that /opt/*/share would also be searched for plugins/icons/desktop
> files/... But that would enforce a directory structure
> beneath /opt/*/, that is currently left unspecified. Do we want that?

Its partly defined - I guess we can either leave it optional but
add /opt/share (and whatever else is needed) as locations things can
link into, or we can require those directories be created by
distributors and used by packages in /opt. (Perhaps a happy middle
ground?)

thanks,
kk

-- 
Karl Goetz, (Kamping_Kaiser / VK5FOSS)
Debian contributor / gNewSense Maintainer
http://www.kgoetz.id.au
No, I won't join your social networking group

Attachment: signature.asc
Description: PGP signature

_______________________________________________
fhs-discuss mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/fhs-discuss

Reply via email to