proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

proxychains does not work for emacs --daemon

Open outsinre opened this issue 9 years ago • 7 comments

Emacs has daemon mode in the background.

When proxychains emacs --daemon, successive emacsclient does not connect to proxy.

outsinre avatar Apr 20 '16 16:04 outsinre

and successive proxychains4 emacsclient ?

rofl0r avatar Apr 20 '16 18:04 rofl0r

For example:

  1. $ proxychains emacs --daemon file1.txt

    After editing, close emacs frame.

  2. $ emacsclient file2.txt

    Edit another file2. If trying to access the Internet during the 2nd edition, Emacs/Gnus is dead. No response! Have to pkill -TERM emacs.

  3. $ proxychains emacs (without daemon) works like a delightfully.

  4. Linux 64; proxychains-ng 4.10; Emacs 24.5.

outsinre avatar Apr 21 '16 01:04 outsinre

instead of $ emacsclient file2.txt try $ proxychains4 emacsclient file2.txt

rofl0r avatar Apr 21 '16 08:04 rofl0r

Even the 1st step above does not work. Emacs is dead forever if Gnus trying to connect to email.

For proxychains emacsclient file2.txt does not work either.

BTW, it's named proxychains instead of proxychains4.

outsinre avatar Apr 21 '16 11:04 outsinre

Is it solved?

mgcyung avatar Jan 21 '19 14:01 mgcyung

Emacs version 26 added the command-line option --fg-daemon, which is compatible with proxychains. So now you can call proxychains -q emacs --fg-daemon.

However, since the emacs process will run in the foreground instead of forking, one might want to use it with a detaching software (abduco, dtach, screen, tmux) or run emacs as a systemd unit.

tmdemelo avatar Jun 19 '19 15:06 tmdemelo

proxychains emacsclient -a '' -t -c works just fine.

amosbird avatar Oct 08 '20 10:10 amosbird