From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ng5og-0001d4-H1 for garchives@archives.gentoo.org; Sat, 13 Feb 2010 00:24:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49AF3E0A5C; Sat, 13 Feb 2010 00:23:58 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id 2F9FAE0A5C for ; Sat, 13 Feb 2010 00:23:58 +0000 (UTC) Received: from math.princeton.edu ([128.112.18.16]) by sentinel.math.Princeton.EDU with esmtp (Exim 4.69) (envelope-from ) id 1Ng5ng-0004j2-8u for gentoo-user@lists.gentoo.org; Fri, 12 Feb 2010 19:23:57 -0500 Received: from math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by math.Princeton.EDU (8.13.8/8.13.8) with ESMTP id o1D0NuGa018467 for ; Fri, 12 Feb 2010 19:23:56 -0500 Received: (from wwong@localhost) by math.Princeton.EDU (8.13.8/8.13.8/Submit) id o1D0Nuv3018464 for gentoo-user@lists.gentoo.org; Fri, 12 Feb 2010 19:23:56 -0500 Date: Fri, 12 Feb 2010 19:23:56 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Two problems with xdg-open Message-ID: <20100213002356.GA17188@math.princeton.edu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Archives-Salt: d29a6b9b-0d2a-4910-921e-8370aa268ea1 X-Archives-Hash: d6f7182f2333e2c381d24cd4805a2205 Hi list: What exactly is xdg-open and how to I configure it to do what I want? The question came up because I am using jabref, a Java based bibtex management system. On my home machine, when I tried to open a PDF file, java throws a file-not-found error on "xdg-open". But I have xdg-utils installed, and xdg-open is found in /usr/bin. Right now I have gotten around the problem by configuring jabref explicitly to use xpdf to load PDF files. For all I know this is probably a environment/PATH issue in the load script for jabref. I took a look at the man page for xdg-open, and find the concept intriguing. The idea seems useful. But how does one go about "setting the default" programs for various documents? If I try to issue "xdg-open file.pdf", it tries to load firefox, which then asks me where to save the pdf file. This is rather obviously not the desired behaviour. Maybe I'm blind or something, but I don't see anything in the man page about how it determines what is the user's preferred application. Cheers, W -- Willie W. Wong wwong@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton