Gentoo Archives: gentoo-user

From: Willie Wong <wwong@××××××××××××××.EDU>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Two problems with xdg-open
Date: Sat, 13 Feb 2010 00:24:58
Message-Id: 20100213002356.GA17188@math.princeton.edu
1 Hi list:
2
3 What exactly is xdg-open and how to I configure it to do what I want?
4
5 The question came up because I am using jabref, a Java based bibtex
6 management system. On my home machine, when I tried to open a PDF
7 file, java throws a file-not-found error on "xdg-open". But I have
8 xdg-utils installed, and xdg-open is found in /usr/bin. Right now I
9 have gotten around the problem by configuring jabref explicitly to use
10 xpdf to load PDF files. For all I know this is probably a
11 environment/PATH issue in the load script for jabref.
12
13 I took a look at the man page for xdg-open, and find the concept
14 intriguing. The idea seems useful. But how does one go about "setting
15 the default" programs for various documents?
16
17 If I try to issue "xdg-open file.pdf", it tries to load firefox, which
18 then asks me where to save the pdf file. This is rather obviously not
19 the desired behaviour. Maybe I'm blind or something, but I don't see
20 anything in the man page about how it determines what is the user's
21 preferred application.
22
23 Cheers,
24
25 W
26 --
27 Willie W. Wong wwong@××××××××××××××.edu
28 Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
29 et vice versa ~~~ I. Newton

Replies

Subject Author
Re: [gentoo-user] Two problems with xdg-open Albert Hopkins <marduk@×××××××××××.org>