From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: use of 'system in ox-odt.el Date: Wed, 20 May 2015 20:29:20 -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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3bed07fd8b705168ca27b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvEMW-0003YU-GQ for emacs-orgmode@gnu.org; Wed, 20 May 2015 20:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvEMV-0000kZ-5s for emacs-orgmode@gnu.org; Wed, 20 May 2015 20:29:24 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:33695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvEMU-0000kA-Ou for emacs-orgmode@gnu.org; Wed, 20 May 2015 20:29:23 -0400 Received: by lagr1 with SMTP id r1so90963104lag.0 for ; Wed, 20 May 2015 17:29:21 -0700 (PDT) In-Reply-To: <20150520174253.GC8817@chitra.no-ip.org> 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 --001a11c3bed07fd8b705168ca27b Content-Type: text/plain; charset=UTF-8 On May 20, 2015 1:43 PM, "Suvayu Ali" wrote: > > On Wed, May 20, 2015 at 01:21:34PM +0200, Rasmus wrote: > > Suvayu Ali writes: > > > > > On Wed, May 20, 2015 at 11:50:03AM +0200, Rasmus wrote: > > >> Suvayu Ali writes: > > >> > > > > > >> > Do you have a mailcap which says otherwise? That's what I would suspect > > >> > given the doc string for org-file-apps and the default value of > > >> > org-file-apps-defaults-gnu on my system. > > >> > > >> I have this in my mailcap > > >> > > >> application/msword; antiword %s; > > >> application/pdf; evince %s; > > >> application/vnd.lotus-organizer; emacsclient -ca '' %s; > > >> application/zip file-roller %s; > > >> > > >> Org does not open my html and odt files. It does open pdf files. This is > > >> using emacs -q. I use Gnome 3.16 and xdg-open works as expected from the > > >> terminal. > > > > > > There should also be a system-wide setting in /etc/mailcap. On my > > > Fedora machine, the system-wide settings all look like this: > > > > > > text/html; /usr/bin/xdg-open %s ; copiousoutput > > > > > > If yours doesn't, you could override it in ~/.mailcap. If that doesn't > > > fix things, I'm out of ideas :-|. > > > > Now it get the message > > > > Running /usr/bin/xdg-open /tmp/test.html ...done > > > > But it doesn't actually open the file... The same happens when I mark the > > file in dired and says & xdg-open. From the terminal it works fine. > > 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 > > Hope this helps, > > -- > Suvayu I think those bug reports describe the problem precisely. I am also on gnome and have much the same problem. > > Open source is the future. It sets us free. > --001a11c3bed07fd8b705168ca27b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 20, 2015 1:43 PM, "Suvayu Ali" <fatkasuvayu+linux@gmail.com> wrote:
>
> On Wed, May 20, 2015 at 01:21:34PM +0200, Rasmus wrote:
> > Suvayu Ali <f= atkasuvayu+linux@gmail.com> writes:
> >
> > > On Wed, May 20, 2015 at 11:50:03AM +0200, Rasmus wrote:
> > >> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> > >>
> > >
> > >> > Do you have a mailcap which says otherwise?=C2=A0 T= hat's what I would suspect
> > >> > given the doc string for org-file-apps and the defa= ult value of
> > >> > org-file-apps-defaults-gnu on my system.
> > >>
> > >> I have this in my mailcap
> > >>
> > >>=C2=A0 =C2=A0 =C2=A0application/msword;=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 antiword %s;
> > >>=C2=A0 =C2=A0 =C2=A0application/pdf;=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 evince %s;
> > >>=C2=A0 =C2=A0 =C2=A0application/vnd.lotus-organizer; emac= sclient -ca '' %s;
> > >>=C2=A0 =C2=A0 =C2=A0application/zip=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 file-roller %s;
> > >>
> > >> Org does not open my html and odt files.=C2=A0 It does o= pen pdf files.=C2=A0 This is
> > >> using emacs -q.=C2=A0 I use Gnome 3.16 and xdg-open work= s as expected from the
> > >> terminal.
> > >
> > > There should also be a system-wide setting in /etc/mailcap.= =C2=A0 On my
> > > Fedora machine, the system-wide settings all look like this:=
> > >
> > >=C2=A0 =C2=A0text/html; /usr/bin/xdg-open %s ; copiousoutput<= br> > > >
> > > If yours doesn't, you could override it in ~/.mailcap.= =C2=A0 If that doesn't
> > > fix things, I'm out of ideas :-|.
> >
> > Now it get the message
> >
> >=C2=A0 =C2=A0 =C2=A0Running /usr/bin/xdg-open /tmp/test.html ...do= ne
> >
> > But it doesn't actually open the file...=C2=A0 The same happe= ns when I mark the
> > file in dired and says & xdg-open.=C2=A0 From the terminal it= works fine.
>
> 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/msg00279.ht= ml
> https:= //bugzilla.gnome.org/show_bug.cgi?id=3D652262
>
> I came across this a long time ago trying to investigate why xdg-open<= br> > didn't work when running asynchronously like your example.
>
> =C2=A0 http= ://thread.gmane.org/gmane.emacs.help/93430
>
> Hope this helps,
>
> --
> Suvayu

I think those bug reports describe the problem precisely.=C2= =A0 I am also on gnome and have much the same problem.=C2=A0

>
> Open source is the future. It sets us free.
>

--001a11c3bed07fd8b705168ca27b--