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: Sun, 22 Sep 2013 11:19:24 +0200 Message-ID: <327CAEEE-8A2C-4D5D-814D-7D2D40103353@gmail.com> References: <8761txig54.fsf@gmail.com> <20130919063652.GA443@kuru.dyndns-at-home.com> <20130919142548.GD16381@kuru.dyndns-at-home.com> <46BBAE44-326C-4128-BA68-5361F8632EE3@gmail.com> <20130920110741.GA2394@kuru.dyndns-at-home.com> <20130920131456.GC2394@kuru.dyndns-at-home.com> <20130922084939.GE28580@kuru.dyndns-at-home.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9F8CB8BA-8C7F-42C2-88BD-69B7FA695D71"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNfpI-00013W-Oe for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 05:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNfpA-0006oq-6N for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 05:19:36 -0400 Received: from mail-ee0-x230.google.com ([2a00:1450:4013:c00::230]:34168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNfp9-0006ok-Qk for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 05:19:28 -0400 Received: by mail-ee0-f48.google.com with SMTP id l10so1092898eei.21 for ; Sun, 22 Sep 2013 02:19:27 -0700 (PDT) In-Reply-To: <20130922084939.GE28580@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: Org Mode --Apple-Mail=_9F8CB8BA-8C7F-42C2-88BD-69B7FA695D71 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22.9.2013, at 10:49, Suvayu Ali wrote: > Hi Matt, >=20 >> On Fri, Sep 20, 2013 at 6:34 PM, Matt Price = wrote: >>> On Fri, Sep 20, 2013 at 9:14 AM, Suvayu Ali = wrote: >>>> On Fri, Sep 20, 2013 at 02:29:00PM +0200, Carsten Dominik wrote: >>>>>=20 >>>>>>> On Sep 19, 2013, at 4:25 PM, Suvayu Ali = wrote: >>>>>>>=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 >>>>>>>=20 >>>>>=20 >>>>> OK, this sounds useful. >>>>> Next question: Maybe people who *are* on a Desktop environment = will not like it if we force DE=3Dgeneric onto them as well? >>>>> Or would't that make a difference? >>>>=20 >>>> I did some quick searching, this part is a bit murky. The generic = way >>>> of setting up default application associations with mime types is >>>> through desktop files and = ~/.local/share/applications/mimeapps.list. >>>>=20 >>>> Now XFCE and xdg-open both use this, I do not think this is true = for >>>> KDE, Gnome, or Gnome-like DEs though. So for desktops that have = their >>>> own config system, it is possible xdg-open's generic and the = desktop >>>> specific preference might not match. >>>>=20 >>>> Some testing by other desktop users might be useful here. Maybe = Matt >>>> and Glyn can help here (CC'ed). >>>>=20 >>>> To test: >>>> 1. open directory with pdf/html/odt files in dired, >>>> 2. put point on one of these files, >>>> 2. run asynchronous shell command: `& DE=3Dgeneric xdg-open RET'. >>>>=20 >>>> Does it start your prefered application? If not, we should drop = this >>>> idea. If yes, maybe it is worth it. >>>=20 >>>=20 >>> huh, I just tried it on a pdf file and an odt file, and nothing >>> opened;vI just got a message that the process had finished, and an >>> empty new Async Shell Command buffer. Is it possible I'm using a >>> nonstandard xdg-open or something, or that the problem is otherwise >>> related to my system? This is on ubuntu 13.-4, running unity. >=20 > I'm not sure what is going wrong there. That said, all this seems > rather fragile. The bug with gvfs-open has been there for over 3 = years, > and I don't think there is even a bug-report open for exo-open. It's > probably best to drop the idea for now. Too bad, but true. We will drop it for now, until there is a better and more robust idea. - Carsten --Apple-Mail=_9F8CB8BA-8C7F-42C2-88BD-69B7FA695D71 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----- iQEcBAEBAgAGBQJSPrYcAAoJEO+gg/nAZuwM2VsH/3ORNhIGVRfTBEvUhB7Rmqm2 KSX7tV16rXu57zTvetEHBvQnlEYspE7FYs6WoFwS4C4JOynKpr4hBi8s/yyGdMIm tDCcTVbqxgumwus4C+3RtlPEckLtIXc/wOGEM71UT69sRVj/zf4+VnkhewbmzEkN YPgLQyxufoEaoKeoCfUYcVuyec7dQslyzbg9AGUnRAN777WZgdla2KpbNHLha/4p 4XDslZ1iAEhzj9iUNPzQ5zDBw+PMtF4PgVK7op7jCCF41tYRZAU/t31NSVER5bkO WjqWG1WEFHKszSy1fpRaC08osZT/C0DXqVvOzZAW8sifBkzBiKTucT9ovlVozio= =/gYP -----END PGP SIGNATURE----- --Apple-Mail=_9F8CB8BA-8C7F-42C2-88BD-69B7FA695D71--