From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#33847: 27.0.50; emacsclient does not find server socket Date: Tue, 25 Dec 2018 13:02:34 -0800 Organization: UCLA Computer Science Department Message-ID: <8a6fc59c-08b3-e274-4fb1-74674c79540a@cs.ucla.edu> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1545773011 30988 195.159.176.226 (25 Dec 2018 21:23:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2018 21:23:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: 33847@debbugs.gnu.org To: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 25 22:23:26 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbuAe-0007ub-PH for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Dec 2018 22:23:24 +0100 Original-Received: from localhost ([127.0.0.1]:43306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbuCl-0007r2-96 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Dec 2018 16:25:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbtr0-0003jl-TZ for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2018 16:03:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbtqx-0005I2-P1 for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2018 16:03:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbtqw-0005Gs-AV for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2018 16:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gbtqw-00030Y-5C for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2018 16:03:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Dec 2018 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33847-submit@debbugs.gnu.org id=B33847.154577176411532 (code B ref 33847); Tue, 25 Dec 2018 21:03:02 +0000 Original-Received: (at 33847) by debbugs.gnu.org; 25 Dec 2018 21:02:44 +0000 Original-Received: from localhost ([127.0.0.1]:36466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbtqe-0002zw-Hv for submit@debbugs.gnu.org; Tue, 25 Dec 2018 16:02:44 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbtqc-0002zf-DE for 33847@debbugs.gnu.org; Tue, 25 Dec 2018 16:02:42 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7480F160D3F; Tue, 25 Dec 2018 13:02:35 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id tsNS_RiUwGG9; Tue, 25 Dec 2018 13:02:34 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BC014160D43; Tue, 25 Dec 2018 13:02:34 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jZiq0Tn8x8MM; Tue, 25 Dec 2018 13:02:34 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 95B90160922; Tue, 25 Dec 2018 13:02:34 -0800 (PST) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153843 Archived-At: > Suggested solutions: > - Create the socket in a dir that is more readily available, for example > somewhere under ${HOME}/emacs.d/ Unfortunately that won't work well in general, as $HOME/emacs.d might not exist, or it might be on a network file system where a host-specific file would be inappropriate. > - Have emacsclient fall back to TMPDIR as well when no socket is found > under XDG_RUNTIME_DIR This would run afoul of the security issues that led to the use of XDG_RUNTIME_DIR in the first place. Instead, I suggest unsetting XDG_RUNTIME_DIR if you wish to start an Emacs client or server that is independent of your session and are on a host that is secured well enough so that the security issues are of no concern. Alternatively, you can use --socket-name when starting emacsclient.