public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Albert Hopkins <marduk@letterboxes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Two problems with xdg-open
Date: Fri, 12 Feb 2010 23:25:07 -0500	[thread overview]
Message-ID: <1266035107.195954.0.camel@centar> (raw)
In-Reply-To: <20100213002356.GA17188@math.princeton.edu>

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





  reply	other threads:[~2010-02-13  4:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-13  0:23 [gentoo-user] Two problems with xdg-open Willie Wong
2010-02-13  4:25 ` Albert Hopkins [this message]
2010-02-13 10:31   ` Willie Wong
2010-02-13 10:41     ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1266035107.195954.0.camel@centar \
    --to=marduk@letterboxes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox