rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

proxychains does not work for emacs --daemon #116

Open outsinre opened 8 years ago

outsinre commented 8 years ago

Emacs has daemon mode in the background.

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

rofl0r commented 8 years ago

and successive proxychains4 emacsclient ?

outsinre commented 8 years ago

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.
rofl0r commented 8 years ago

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

outsinre commented 8 years ago

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.

mgcyung commented 5 years ago

Is it solved?

tmdemelo commented 5 years ago

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.

amosbird commented 4 years ago

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