unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Steven Ihde <sihde@hamachi.us>
To: 3992@debbugs.gnu.org
Subject: bug#3992: emacsclient and ssh on MacOS X
Date: Mon, 12 Jul 2010 13:38:21 -0700	[thread overview]
Message-ID: <746F3247-3F89-4BF3-A513-9F52D5DBE1B2@hamachi.us> (raw)
In-Reply-To: <700e2ca10907310105l36c6397bxbca15cad3ddd3477@mail.gmail.com>


I experienced this problem too.  I found that in my case the problem  
was caused by the setting of $TMPDIR on OS X.

When logging in at the desktop, $TMPDIR is set by launchd to some  
directory under /var/folders.  This doesn't happen when logging in via  
ssh.  Thus, emacsclient on an ssh session is unable to find a server  
started under a desktop session, because they communicate through a  
unix socket located under $TMPDIR.

To fix this, add something like the following to your .profile  
or .bashrc so it is executed when logging in via ssh:

if [ -z "$TMPDIR" ]; then
   export TMPDIR=`getconf DARWIN_USER_TEMP_DIR`
fi

This will set TMPDIR to the same per-user directory as when logging in  
on the desktop.

This fixed the problem for me.







      parent reply	other threads:[~2010-07-12 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-31  8:05 bug#3992: 23.1.50; [Cocoa Emacs] emacsclient can't find server via ssh bread
2009-08-01  5:46 ` bug#4001: " bread
2010-07-12 20:38 ` Steven Ihde [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=746F3247-3F89-4BF3-A513-9F52D5DBE1B2@hamachi.us \
    --to=sihde@hamachi.us \
    --cc=3992@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).