From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: use of 'system in ox-odt.el Date: Thu, 21 May 2015 11:21:38 -0400 Message-ID: References: <87vbfopqd6.fsf@gmx.us> <20150519203833.GA18927@chitra.no-ip.org> <87egmbmvck.fsf@gmx.us> <20150520110326.GB8817@chitra.no-ip.org> <871tibmr41.fsf@gmx.us> <20150520174253.GC8817@chitra.no-ip.org> <87d21u1gzi.fsf@pank.eu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3bed09cc89f05169919d1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvSI2-00012c-BR for emacs-orgmode@gnu.org; Thu, 21 May 2015 11:21:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvSI0-0007ca-A1 for emacs-orgmode@gnu.org; Thu, 21 May 2015 11:21:42 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:35315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvSHz-0007cS-TR for emacs-orgmode@gnu.org; Thu, 21 May 2015 11:21:40 -0400 Received: by labbd9 with SMTP id bd9so106022159lab.2 for ; Thu, 21 May 2015 08:21:39 -0700 (PDT) In-Reply-To: <87d21u1gzi.fsf@pank.eu> 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 Cc: Org Mode --001a11c3bed09cc89f05169919d1 Content-Type: text/plain; charset=UTF-8 On May 21, 2015 04:32, "Rasmus" wrote: > > Matt Price writes: > > >> You are on Gnome, rt? I think there is a long standing "bug" in > >> gvfs-open (which is called by xdg-open). > >> > >> See the following: > >> http://lists.gnu.org/archive/html/emacs-devel/2009-07/msg00279.html > >> https://bugzilla.gnome.org/show_bug.cgi?id=652262 > >> > >> I came across this a long time ago trying to investigate why xdg-open > >> didn't work when running asynchronously like your example. > >> > >> http://thread.gmane.org/gmane.emacs.help/93430 > > > I think those bug reports describe the problem precisely. I am also on > > gnome and have much the same problem. > > 2 minutes research suggest that I cannot tell xdg-open to use another > backend other than through environment variables, viz. BROWSER, DE, > DESKTOP_SESSION. Unfortunately, I was not able to make this work by just > setting the DESKTOP_SESSION in either the shell starting Emacs or via > setenv. > > So I guess on could use an xdg-open alternative or hardcode programs in > mailcap... Did you try this: (setcdr (assq 'system org-file-apps-defaults-gnu ) '(call-process "xdg-open" nil 0 nil file)) That works for me. > > Rasmus > > -- > A page of history is worth a volume of logic > > --001a11c3bed09cc89f05169919d1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 21, 2015 04:32, "Rasmus" <rasmus@gmx.us> wrote:
>
> Matt Price <moptop99@gmail.co= m> writes:
>
> >> You are on Gnome, rt?=C2=A0 I think there is a long standing = "bug" in
> >> gvfs-open (which is called by xdg-open).
> >>
> >> See the following:
> >> http://lists.gnu.org/archive/html/emacs-devel/2009-07/ms= g00279.html
> >> https://bugzilla.gnome.org/show_bug.cgi?id=3D652262
> >>
> >> I came across this a long time ago trying to investigate why = xdg-open
> >> didn't work when running asynchronously like your example= .
> >>
> >>=C2=A0 =C2=A0http://thread.gmane.org/gmane.emacs.help/93430
>
> > I think those bug reports describe the problem precisely.=C2=A0 I= am also on
> > gnome and have much the same problem.
>
> 2 minutes research suggest that I cannot tell xdg-open to use another<= br> > backend other than through environment variables, viz. BROWSER, DE, > DESKTOP_SESSION.=C2=A0 Unfortunately, I was not able to make this work= by just
> setting the DESKTOP_SESSION in either the shell starting Emacs or via<= br> > setenv.
>
> So I guess on could use an xdg-open alternative or hardcode programs i= n
> mailcap...

Did you try this:

=C2=A0(setcdr (assq 'system org-file-apps-defaults-gnu )= '(call-process "xdg-open" nil 0 nil file))

That works for me.

>
> Rasmus
>
> --
> A page of history is worth a volume of logic
>
>

--001a11c3bed09cc89f05169919d1--