In my .bashrc
, I define TMPDIR=${HOME}/tmp
so temporary files are under my encrypted $HOME
. emacs
, invoked from the launcher, doesn't see this definition, but emacsclient
, invoked from a shell does.
So far, I know that
emacs
(after (server-start)
) opens a socket in '/tmp', 'emacsclient' tries to communicate with 'emacs' over a socket in '${HOME}/tmp', and does very poorly. How can I presuade the launcher (via emacsclient.desktop?) to pass the right value for TMPDIR?