I tested with following code:
#+begin_src emacs-lisp
(let ((cmd (format
"%s %s"
"xdg-open"
(shell-quote-argument
(expand-file-name
"~/Downloads/伦敦底层社会 1,2章.doc")))))
(start-process-shell-command cmd "*org-open-file*" cmd))
(start-process "org-open-file"
" *org-open-file*"
"xdg-open"
(expand-file-name "~/Downloads/伦敦底层社会 1,2章.doc"))
#+end_src
Both has same problem, xdg-open exited automatically and before really open
file.
So maybe I should ask question in Emacs-help mailing list? Because this problem
seems on ~start-process~ / ~start-process-shell-command~.
Christopher M. Miles <[email protected]> writes:
> I found exactly same problem and some answer on this question:
>
> https://askubuntu.com/questions/646631/emacs-doesnot-work-with-xdg-open
>
> But I hope Org Mode can provide solution by default. Based on the description
> in
> answers. Is there something Org Mode can do to get around this problem?
>
> Nicolas Goaziou <[email protected]> writes:
>
>> Hello,
>>
>> stardiviner <[email protected]> writes:
>>
>>> When I press =[C-u C-u C-c C-o]= to open an image file link with system
>>> external
>>> program. It can't open the image file.
>>
>> Is it really an Org bug? I.e., is your mailcap file properly set up?
>>
>> If you think this is really an Org bug, could you provide an ECM,
>> including your .mailcap?
>>
>> Regards,
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature
