Hamish Moffatt wrote:
> Package: xdg-utils
> Version: 1.0.2-3
> Severity: normal
> 
> I can't get 'xdg-mime query' to output anything at all.
> 
> [12:27AM] [EMAIL PROTECTED]:~ $ ls -l output.ps
> -rw-r--r-- 1 hamish hamish 10212505 2008-02-06 22:22 output.ps
> [12:27AM] [EMAIL PROTECTED]:~ $ xdg-mime query filetype output.ps
> [12:27AM] [EMAIL PROTECTED]:~ $ xdg-mime query default application/postscript
> [12:27AM] [EMAIL PROTECTED]:~ $ 
> 
> By setting $XDG_UTILS_DEBUG_LEVEL I found that 'query filetype' is using
> gnomevfs-info, which is only a Suggestion of xdg-utils'. The command
> should print an error if it can't actually call gnomevfs-info.

Yes, this is true. Actually, it should also try to call "file" if it can't find
gnomevfs-info.

> Having installed gnomevfs-info, query filetype works but query default
> still does not:
[...]
> I don't know why xdg-mime would check under gdm/applications? Should be
> gnome, surely.

It checks there because the path is included in the variable $XDG_DATA_DIRS from
the environment. I don't know where it is set, maybe by gdm or gnome-session.

But you're right: it should check /usr/share/gnome/applications/defaults.list.

-- 
Pelle



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to