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: Tue, 17 Sep 2013 22:31:41 +0200 Message-ID: References: <8738pnw4e5.fsf_-_@Rainer.invalid> <4E229EE1-5DE1-48B5-B5C4-DCFB41A1686B@gmail.com> <06D4DDE1-E3D1-470E-A887-66B78BD58302@gmail.com> <87ob7rri02.fsf@nowhere.org> <20130917135651.GC8200@kuru.dyndns-at-home.com> <20130917194250.GA16911@kuru.dyndns-at-home.com> <20130917202134.GB16911@kuru.dyndns-at-home.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_48810D7F-F52C-4B13-B962-E18925AEB275"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM1w0-0004EW-AF for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 16:31:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VM1vr-00060E-0Z for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 16:31:44 -0400 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:63258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM1vq-000602-PU for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 16:31:34 -0400 Received: by mail-ea0-f172.google.com with SMTP id r16so3028060ead.31 for ; Tue, 17 Sep 2013 13:31:34 -0700 (PDT) In-Reply-To: <20130917202134.GB16911@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: emacs-orgmode@gnu.org --Apple-Mail=_48810D7F-F52C-4B13-B962-E18925AEB275 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 17.9.2013, at 22:21, Suvayu Ali wrote: > Hi, > > Some comments and a question. > > On Tue, Sep 17, 2013 at 09:42:50PM +0200, Suvayu Ali wrote: >> On Tue, Sep 17, 2013 at 09:34:34PM +0200, Carsten Dominik wrote: >>> >>> On 17.9.2013, at 15:56, Suvayu Ali wrote: >>> >>>> I see the same problem. But I think this might be an Emacs issue; I >>>> can't open a pdf from dired either (with & on a pdf file). However I >>>> can open it if I execute a shell command: M-! xdg-open file.pdf RET. >> >> It's strange though. I'll try to investigate. > > I can consistently repeat this outside of Org. I am trying with > `dired-do-shell-command'. > > Steps: > 1) (dired-do-shell-command "xdg-open" nil '("file.pdf")), the script > runs and opens the pdf file. > 2) (dired-do-shell-command "xdg-open &" nil '("file.pdf")), this runs > the script too but the pdf is not opened. > > (I know the scripts run because I turned on debugging in the scripts) > > I'm assuming Org opens it asynchronously. What lisp function does Org > use? Org used start-process-shell-command, and this happens in org-open-file, which is called for links to a file in org-open-at-point. > A weekly related issue: when following links to pdf files, I have > the same problem. When following https links I have no issues, they > open in my web browser as expected. Does org use a similar mechanism > when following links? http and https links are followed using browse-url. - Carsten > > Any thoughts? > > -- > Suvayu > > Open source is the future. It sets us free. --Apple-Mail=_48810D7F-F52C-4B13-B962-E18925AEB275 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----- iQEcBAEBAgAGBQJSOLwuAAoJEO+gg/nAZuwMZH0H/1lUiBpXV8tRDPiemKWE79Qv xpnkzG+i2PjZZzYoJ6tVu9fnNJ7kX0rFw2FP1X3sqF6xNqV2uF4jlOsbEesh9qc1 xlAE2JV6JXVr85ktJf3Vivnn0zOkLeAFo4VtwDHFSWm5ViP/KXGOtlyBCZ64YlUk 4hG2w6Zy8PsS07wPkheCr5DG2jS8WKraaxudXRMFTaS/lHilnRrGlIU/2sYNTqRT cWZhuX/La/22WgVRQnfgx2hqWibVjXDbave6WUBHNIiyTLxs68ld2U3X6EyVK9Sw E3z7K6PYns5Np7VHSSouPBi4RH236K/TrxAr87wjKqDYpqA4ztNk8PQBEsCvWCE= =noqZ -----END PGP SIGNATURE----- --Apple-Mail=_48810D7F-F52C-4B13-B962-E18925AEB275--