From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug#14605: Problem with export an .org file to .pdf does not open pdf file Date: Fri, 20 Sep 2013 12:49:43 +0200 Message-ID: <46BBAE44-326C-4128-BA68-5361F8632EE3@gmail.com> References: <20130917194250.GA16911@kuru.dyndns-at-home.com> <20130917202134.GB16911@kuru.dyndns-at-home.com> <20130917212557.GC16911@kuru.dyndns-at-home.com> <87eh8m4hx6.fsf@ucl.ac.uk> <20130918121429.GA2905@kuru.dyndns-at-home.com> <7618A639-D354-436C-A7D4-A0030F9C9663@gmail.com> <8761txig54.fsf@gmail.com> <20130919063652.GA443@kuru.dyndns-at-home.com> <20130919142548.GD16381@kuru.dyndns-at-home.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_CD6E9E73-2F99-4C1A-8E23-57429E594EB1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMyHb-0004mT-OV for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 06:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMyHT-0006Is-5u for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 06:49:55 -0400 Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:64609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMyHS-0006Ii-Vo for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 06:49:47 -0400 Received: by mail-ee0-f50.google.com with SMTP id d51so162046eek.23 for ; Fri, 20 Sep 2013 03:49:46 -0700 (PDT) In-Reply-To: <20130919142548.GD16381@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: Nick Dokos , emacs-orgmode@gnu.org --Apple-Mail=_CD6E9E73-2F99-4C1A-8E23-57429E594EB1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 19, 2013, at 4:25 PM, Suvayu Ali = wrote: > On Thu, Sep 19, 2013 at 08:36:52AM +0200, Suvayu Ali wrote: >> On Thu, Sep 19, 2013 at 08:24:51AM +0200, Carsten Dominik wrote: >>>=20 >>> On 19.9.2013, at 06:34, Nick Dokos wrote: >>>=20 >>>> Carsten Dominik writes: >>>>=20 >>>>> On 18.9.2013, at 14:14, Suvayu Ali = wrote: >>>>> ... >>>>>> I think that is expected. The bug is in the desktop specific = open >>>>>> commands. Since you use none, generic open is used. That is = simply a >>>>>> shell function, and does the right thing. >>>>>=20 >>>>> Is there a generic open command in Linux? Why don't we use this = instead? >>>>>=20 >>>>=20 >>>> Not really. There is a shell function called open_generic inside of >>>> xdg-open. I believe that's what Suvayu was referring to. But there = is >>>> no clean way of calling it, short of pulling it out of the xdg-open >>>> script into a new script: as a general solution, that's hopeless. >>>=20 >>> All right. Too bad. Thank you. >>=20 >> Nick said it accurately. It is part of the xdg-open script. >=20 > I have some good news (sort of). We can force generic open by calling > xdg-open like this[1]: >=20 > DE=3Dgeneric xdg-open /path/to/file Hi Suvayu, interesting! How does this work? Is this setting an environment = variable DE before it is run? The syntax looks unfamiliar to me. - Carsten >=20 > I tested this with >=20 > (start-process-shell-command "DE=3Dgeneric xdg-open test.html" > nil "DE=3Dgeneric xdg-open test.html") >=20 > and it works well. Do you think this is acceptable? >=20 > Cheers, >=20 >=20 > Footnotes: >=20 > [1] >=20 > --=20 > Suvayu >=20 > Open source is the future. It sets us free. --Apple-Mail=_CD6E9E73-2F99-4C1A-8E23-57429E594EB1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSPChHAAoJEO+gg/nAZuwMaiYIAKL1qGsMH57NP4mF7lmrc9NH sq81Kf6yQDqr6KWBF6NOL2IYqlgkUEr1zRKBChg2xw930upYwABCkYM9y6LxOq5D a5mvkfXMch4gmv/sSjiohDt0GnkTnI4ckLRH1toB/sJ9s34KYoP51vPI1h88Ki9V SKiPVtVocLyUJ1Km86QX2caGdGhbh9xEztb8ZMhAw8xOw+5gHooQ6KpmPuE8IX2W X6OVOka+PXq/5Z9fBj+KDeuYzcagGz3BaSE3BfSpkyyz9CiaUBtWEkSgyhC2Ohqg l8KEMbHG6BQkCr5LGxyj1121ADp+o4cIC4AZdhTI/G08uW0efyXIAnWgJY7qqMQ= =q+PE -----END PGP SIGNATURE----- --Apple-Mail=_CD6E9E73-2F99-4C1A-8E23-57429E594EB1--