[csw-maintainers] update-mime-database said: Note that '/opt/csw/share' is not in the search path

Philip Brown phil at bolthole.com
Tue Mar 9 17:30:13 CET 2010


On Tue, Mar 9, 2010 at 12:09 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> I had a problem in which evince didn't look for the right MIME
> database when I asked it to display a PDF file.  Running
> update-mime-database showed:
>
> netra ~ # update-mime-database /opt/csw/share/mime
>
> Note that '/opt/csw/share' is not in the search path
> set by the XDG_DATA_HOME and XDG_DATA_DIRS
> environment variables, so applications may not
> be able to find it until you set them. The
> directories currently searched are:
>
>
> - /root/.local/share
> - /usr/local/share/
> - /usr/share/

Where do those defaults come from?


>
>
> After setting XDG_DATA_DIRS to /opt/csw/share, evince started showing
> PDF documents.  What is our way of handling it?  Have the users
> configure the XDG_DATA_DIRS variable for themselves?  Embed this
> setting in each application?  Any other way?


ideally, we find an underlying core related library that has the
defaults compiled in, and patch it.


>The base problem is that I don't know how exactly
>this resolution is working in evince.

GDB is your friend?  :-}


More information about the maintainers mailing list