Am Dienstag, den 26.06.2007, 16:58 +0200 schrieb Per Olofsson: 
> Hello,
> 
> Daniel Leidert wrote:
> > Package: xdg-utils
> > Version: 1.0.1-2
> > Severity: normal
> > 
> > When I try to use xdg-mime to check the MIME type of a file, I always
> > receive the following error:
> > 
> > xdg-mime: no method available for quering MIME type of 'xxx'
> 
> Which desktop environment (if any) are you running the command under?

XFCE4, shared-mime-info and desktop-file-utils are both installed and
databases are up-to-date. However, after your hint I tested GNOME and
there it works. Shouldn't such things be mentioned in the manpage (in
the BUGS section?) or shouldn't there be a fallback mechanism?

> > When I try to query the default
> > applications registered for a MIME type, I always get nothing back from
> > the command, e.g.
> > 
> > $ xdg-mime query default text/html
> > $ 
> > 
> > But the return value is "0", so no error is reported.
> 
> I think that's on purpose. It simply means that no application is
> registered as the default (which is not an error). "default" means that
> the type and app is present in
> ~/.config/share/applications/defaults.list or the corresponding system
> path. (Unless you're running kde which is a special case.)

I know the relevant freedesktop.org specs :) That's the reason why I
wonder, that the command does not return anything. Several editors have
been registered for text/html:

$ grep "text/html" /usr/share/applications/mimeinfo.cache 
text/html=iceweasel.desktop;amaya-9.54.desktop;[..];bluefish-unstable.desktop;

So xdg-mime should return this list. But it does not.

Regards, Daniel



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

Reply via email to