Re: [O] org-open-file with xdg-open not working?

2014-04-22 Thread Eric Abrahamsen
Nicolas Richard  writes:

> Eric Abrahamsen  writes:
>> Presumably that's because the gnus version (eventually
>> `mm-display-external') calls xdg-open with `call-process' and org does
>> it with `start-process-shell-command'. The first is synchronous, the
>> second asynchronous, and I do remember seeing something on one of these
>> lists about difficulties with xdg-open because the process returns
>> before the file actually opens, or *doesn't* return, or some similar
>> thing the details of which I'm forgetting.
>>
>> Have other people run into this difficulty? How are you solving it?
>
> I remember having problems which I was able to solve by changing the
> value of process-connection-type to nil. Does that work for you ?

Brilliant, that did it! Very glad there was a semi-simple solution.

Thanks,
Eric




Re: [O] org-open-file with xdg-open not working?

2014-04-22 Thread Nicolas Richard
Eric Abrahamsen  writes:
> Presumably that's because the gnus version (eventually
> `mm-display-external') calls xdg-open with `call-process' and org does
> it with `start-process-shell-command'. The first is synchronous, the
> second asynchronous, and I do remember seeing something on one of these
> lists about difficulties with xdg-open because the process returns
> before the file actually opens, or *doesn't* return, or some similar
> thing the details of which I'm forgetting.
>
> Have other people run into this difficulty? How are you solving it?

I remember having problems which I was able to solve by changing the
value of process-connection-type to nil. Does that work for you ?

-- 
Nico.



Re: [O] org-open-file with xdg-open not working?

2014-04-22 Thread Eric Abrahamsen
Nick Dokos  writes:

> Eric Abrahamsen  writes:
>
>> I'm trying to open files externally (via org-attach), with a mailcap
>> that funnels most everything to xdg-open. I notice that doing this with
>> org-open-file gives me:
>>
>> Running xdg-open /home/me/path/to/file.PDF...done
>>
>> But no actual open file.
>>
>> Doing a similar thing in gnus, with the `gnus-mime-view-part-externally'
>> command, gives me a similar message about xdg-open, but then the file
>> actually opens.
>>
>> Presumably that's because the gnus version (eventually
>> `mm-display-external') calls xdg-open with `call-process' and org does
>> it with `start-process-shell-command'. The first is synchronous, the
>> second asynchronous, and I do remember seeing something on one of these
>> lists about difficulties with xdg-open because the process returns
>> before the file actually opens, or *doesn't* return, or some similar
>> thing the details of which I'm forgetting.
>>
>> Have other people run into this difficulty?
>
> Yes.
>
>> How are you solving it?
>
> By not using xdg-open: I tend to add explicit entries in my .mailcap instead.

Well pooh... not the answer I was hoping for!




Re: [O] org-open-file with xdg-open not working?

2014-04-22 Thread Nick Dokos
Eric Abrahamsen  writes:

> I'm trying to open files externally (via org-attach), with a mailcap
> that funnels most everything to xdg-open. I notice that doing this with
> org-open-file gives me:
>
> Running xdg-open /home/me/path/to/file.PDF...done
>
> But no actual open file.
>
> Doing a similar thing in gnus, with the `gnus-mime-view-part-externally'
> command, gives me a similar message about xdg-open, but then the file
> actually opens.
>
> Presumably that's because the gnus version (eventually
> `mm-display-external') calls xdg-open with `call-process' and org does
> it with `start-process-shell-command'. The first is synchronous, the
> second asynchronous, and I do remember seeing something on one of these
> lists about difficulties with xdg-open because the process returns
> before the file actually opens, or *doesn't* return, or some similar
> thing the details of which I'm forgetting.
>
> Have other people run into this difficulty?

Yes.

> How are you solving it?

By not using xdg-open: I tend to add explicit entries in my .mailcap instead.

-- 
Nick




[O] org-open-file with xdg-open not working?

2014-04-22 Thread Eric Abrahamsen
I'm trying to open files externally (via org-attach), with a mailcap
that funnels most everything to xdg-open. I notice that doing this with
org-open-file gives me:

Running xdg-open /home/me/path/to/file.PDF...done

But no actual open file.

Doing a similar thing in gnus, with the `gnus-mime-view-part-externally'
command, gives me a similar message about xdg-open, but then the file
actually opens.

Presumably that's because the gnus version (eventually
`mm-display-external') calls xdg-open with `call-process' and org does
it with `start-process-shell-command'. The first is synchronous, the
second asynchronous, and I do remember seeing something on one of these
lists about difficulties with xdg-open because the process returns
before the file actually opens, or *doesn't* return, or some similar
thing the details of which I'm forgetting.

Have other people run into this difficulty? How are you solving it?

Thanks!
Eric