[xmonad] Xmonad, beagle-search, and mime types

Damian damian.only at gmail.com
Sun Feb 21 14:18:46 EST 2010

On Sun, Feb 21, 2010 at 8:14 PM, Damian <damian.only at gmail.com> wrote:
> On Sun, Feb 21, 2010 at 6:33 PM,  <wagnerdm at seas.upenn.edu> wrote:
>> I've been fighting with xdg-open myself, having just switched to chromium.
>> It turns out it's a pretty readable shell script (open it up in your
>> favorite editor and have a look!). Here's approximately what it does:
>> * is there a KDE session running? use kde-open, fall back to kfmclient
>> * is there a Gnome session running? use gvfs-open, fall back to gnome-open
>> * is there an XFCE session running? use exo-open
>> * try, in order: mimeopen, run-mailcap, $BROWSER, firefox, mozilla, netscape
>> So, probably what's happening to you is that you aren't running KDE, Gnome,
>> or XFCE, you don't have mimeopen or run-mailcap installed, and you haven't
>> set $BROWSER.
>> I export BROWSER=gnome-open and love it, but old versions do have a bug
>> where gnome-open totally ignores .local/share/applications/defaults.list, so
>> make sure to update gnome-open!
>> Good luck,
>> ~d
> Thanks a lot for the answer. I see if I can fix it that way.
Indeed, I just exported BROWSER=gnome-open and it worked fine (I
should have hacked xdg-open). Thanks again.

>> Quoting Damian <damian.only at gmail.com>:
>>> Hello,
>>> 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]
>>>  Encoding=UTF-8
>>>  Name=Geeqie
>>>  Exec=geeqie
>>>  MimeType=image/jpeg
>>>  Icon=exec
>>>  NoDisplay=true
>>> 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.
>>> _______________________________________________
>>> xmonad mailing list
>>> xmonad at haskell.org
>>> http://www.haskell.org/mailman/listinfo/xmonad
>> _______________________________________________
>> xmonad mailing list
>> xmonad at haskell.org
>> http://www.haskell.org/mailman/listinfo/xmonad

More information about the xmonad mailing list