I use browse-url
/browse-url-firefox
to open links in Firefox from within Emacs 24.5.1 under Linux (Fedora 23) which in essence executes the firefox
executable with the URL by start-process
. If there is already a Firefox instance running, this will in turn cause the URL to be opened in a new tab and terminate the firefox
executable spawned from Emacs, but otherwise a new Firefox instance will be running as a process child of Emacs (for testing purposes, this is equivalent to M-! sleep 1h & RET
).
If I then want to exit Emacs, it asks me "Active processes exist; kill them and exit anyway?" with the option to either kill the Firefox instance or, well, leave Emacs running. Instead I would like to "detach" the firefox
process from the Emacs parent so that I can exit Emacs while keeping the Firefox instance running.
Is it possible to spawn processes from Emacs that "survive" exiting Emacs, or must all spawned processes die when Emacs exits?
start-process
(like a pdf viewer) and Emacs thinks its job has finished. – lawlist May 19 '16 at 2:48