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
1 Hello,
3 I don't consider myself a smart person. Even my mom used to say that I
4 wasn't so bright. But still, should this be so damn difficult?
6 'beagle-search' is a front end for the beagle desktop search engine.
7 When you issue a query, the application shows you icons (which
8 represent files) with the result of the query. If you click on the
9 icon, the file will be opened with the default application. The
10 problem is that I cannot set the default application by any means. For
11 instance I would like to open jpeg image files using geeqie.
13 I've failed miserably in trying to associate filetypes to
14 applications, using beagle search. The application beagle-search uses
15 xdg-open to open applications. If a filetype has no application
16 associated, then the default handler is firefox (don't ask me why).
18 So I tried to see how xdg-open works, but the man page didn't give me
19 any useful information. The related command, xdg-mime, doesn't work as
20 I expected.
22 I've created a file called geeqie.desktop in the directory
23 /home/damian/.local/share/applications with the following contents:
24 [Desktop Entry]
25 Encoding=UTF-8
26 Name=Geeqie
27 Exec=geeqie
28 MimeType=image/jpeg
29 Icon=exec
30 NoDisplay=true
32 Then I've tried to associate geeqie with jpeg files by running:
33 xdg-mime default geeqie.desktop image/jpeg
35 The command terminates successfully, and after running
36 xdg-mime query default image/jpeg
37 I get as output "geeqie.desktop".
39 But xdg-open (and therefore beagle-search) still refuses to open jpeg
40 images with geeqie.
42 Any ideas?
44 Thanks in advance.


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