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 1Ng9aQ-0003wE-8x for garchives@archives.gentoo.org; Sat, 13 Feb 2010 04:26:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE42AE075E; Sat, 13 Feb 2010 04:25:09 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by pigeon.gentoo.org (Postfix) with ESMTP id 88F46E075E for ; Sat, 13 Feb 2010 04:25:09 +0000 (UTC) Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 352C3E0ACE for ; Fri, 12 Feb 2010 23:25:09 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 12 Feb 2010 23:25:09 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:content-transfer-encoding; s=smtpout; bh=LIJnwihdX0qv2/jupei5Vr+q+Uk=; b=GfkQBHoGMroRLz7S2PIo4NxhdUzrg3hEEAwbYP8DmDuqAtHIBEtg+uJHAjp+1Dipyq64kXXwdlaNhUpxSw8STsEC+3/qkb9s26TSmaFY4rF2BOzzleWJdr8j3+r728YfEZP16bSIDtdAiniQjh2HqvfZeJJhXz+1d6Ax9l7xkWE= X-Sasl-enc: JAzQPmVFn1J6Vg7aa0mFsyYSPetFxkilS8eHm2pACHF7 1266035108 Received: from [192.168.31.12] (cpe-069-134-183-088.nc.res.rr.com [69.134.183.88]) by www.fastmail.fm (Postfix) with ESMTPSA id BFB594AEF32 for ; Fri, 12 Feb 2010 23:25:08 -0500 (EST) Subject: Re: [gentoo-user] Two problems with xdg-open From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <20100213002356.GA17188@math.princeton.edu> References: <20100213002356.GA17188@math.princeton.edu> Content-Type: text/plain; charset="UTF-8" Date: Fri, 12 Feb 2010 23:25:07 -0500 Message-ID: <1266035107.195954.0.camel@centar> 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 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6d6e3338-af1e-4186-9252-15db69ddd61e X-Archives-Hash: 87cb5542229c07263e46bb5807d73b8d On Fri, 2010-02-12 at 19:23 -0500, Willie Wong wrote: > 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. It's a simple bash script. There's no magic. Take a peek at it. -a