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
Message-Id: 47a330c51002210645x71bd75cet4efac576f9a7aac7@mail.gmail.com
1 Hello,
2
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?
5
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.
12
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).
17
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.
21
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
31
32 Then I've tried to associate geeqie with jpeg files by running:
33 xdg-mime default geeqie.desktop image/jpeg
34
35 The command terminates successfully, and after running
36 xdg-mime query default image/jpeg
37 I get as output "geeqie.desktop".
38
39 But xdg-open (and therefore beagle-search) still refuses to open jpeg
40 images with geeqie.
41
42 Any ideas?
43
44 Thanks in advance.

Replies

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