On Tue, Sep 26, 2006 at 08:09:22PM -0500, linlamer wrote:
> 
> Ok.. Making a bit more sense to me now.
> 
> >It sounds like this is modifying something in $XDG_DATA_DIRS that fish
> >can see.  Maybe another application is setting $XDG_DATA_DIRS to
> >encompass more than just /usr{,/local}/share.
> 
> There is no XDG_DATA_DIRS set in my shell apparently
> 
> echo $XDG_DATA_DIRS
> 
> returns nothing.
> 
> I think what is happening is that it's looking into
> ~/.local/share/applications

Yes, fish looks at $XDG_HOME_DIR/.local/share.  If $XDG_HOME_DIR isn't
set, $HOME is used.

> and finding the defaults.list that is apparently being generated by
> nautilus. When I delete that file then it 'open' stops working.
> 
> Also nautilus then 'forgets' my application preference and opens up with
> the default gnome stuff.
> 
> Right now I have one defaults.list available on my system. It's located
> in /etc/gnome-vfs-2.0/defaults.list. (and there is a symbolic link
> /usr/share/gnome/applications/defaults.list that points to that location)
> 
> But I can't quite figure out how to make XDG_DATA_DIRS to work right.
> I tried:
> set  XDG_DATA_DIRS /etc/gnome-vfs-2.0/
> set  XDG_DATA_DIRS /etc/gnome-vfs-2.0/defaults.list
> set  XDG_DATA_DIRS /usr/share/gnome/applications
> set  XDG_DATA_DIRS /usr/share/gnome/

"set -x XDG_DATA_DIRS /usr/share/gnome/" worked fine for me.
XDG_DATA_DIRS should be a : separated list of directories which are
one-level above the applications/ or mime/ directory.  Lacking the -x
may have been the problem.

> If I copy /etc/gnome-vfs-2.0/defaults.list to
> ~/.local/share/applications/ then everything works fine. Which suites me
>  fine right now.

Good. :) I'll suggest the $XDG_DATA_DIRS/packages check to Axel (with a
patch if I get time) and see what he thinks.  I'll close this bug when I
get a response from him on the issue.

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to