all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Miles <numbchild@gmail.com>
To: Emacs Help <help-gnu-emacs@gnu.org>
Subject: [ISSUE] start-process function exited "xdg-open" process before child process returned.
Date: Sun, 10 Jan 2021 12:19:11 +0000	[thread overview]
Message-ID: <VI1PR1001MB10702D8A86D4B30D46B7E184A3AC0@VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]


I used to have problem on open Org Mode file link with external program.

The detailed check out this mail thread archive:

https://orgmode.org/list/87a717ggsr.fsf@nicolasgoaziou.fr/T/#maaf63fde8eefeb5ebbaa3e6f53bc88db686878ed

And later I found this link:

https://askubuntu.com/questions/646631/emacs-doesnot-work-with-xdg-open

I realized the problem might on Emacs itself. Then I did an test:

#+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 of upper code snippet failed.

Can someone explain this problem on ~start-process~ and
~start-process-shell-command~ more detailed?

And is there any solution, or this is a bug?

Thanks for viewing my problem. 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

                 reply	other threads:[~2021-01-10 12:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR1001MB10702D8A86D4B30D46B7E184A3AC0@VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM \
    --to=numbchild@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.