Gentoo Archives: gentoo-user

From: Damian <damian.only@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Xmonad, beagle-search, and mime types
Date: Sun, 21 Feb 2010 15:13:21

I don't consider myself a smart person. Even my mom used to say that I
wasn't so bright. But still, should this be so damn difficult?

'beagle-search' is a front end for the beagle desktop search engine.
When you issue a query, the application shows you icons (which
represent files) with the result of the query. If you click on the
icon, the file will be opened with the default application. The
problem is that I cannot set the default application by any means. For
instance I would like to open jpeg image files using geeqie.

I've failed miserably in trying to associate filetypes to
applications, using beagle search. The application beagle-search uses
xdg-open to open applications. If a filetype has no application
associated, then the default handler is firefox (don't ask me why).

So I tried to see how xdg-open works, but the man page didn't give me
any useful information. The related command, xdg-mime, doesn't work as
I expected.

I've created a file called geeqie.desktop in the directory
/home/damian/.local/share/applications with the following contents:
 [Desktop Entry]

Then I've tried to associate geeqie with jpeg files by running:
   xdg-mime default geeqie.desktop image/jpeg

The command terminates successfully, and after running
   xdg-mime query default image/jpeg
I get as output "geeqie.desktop".

But xdg-open (and therefore beagle-search) still refuses to open jpeg
images with geeqie.

Any ideas?

Thanks in advance.


Subject Author
Re: [gentoo-user] Xmonad, beagle-search, and mime types Willie Wong <wwong@××××××××××××××.EDU>