From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#33847: 27.0.50; emacsclient does not find server socket Date: Thu, 22 Jul 2021 20:30:15 +0200 Message-ID: References: <8a6fc59c-08b3-e274-4fb1-74674c79540a@cs.ucla.edu> <9ebcad22-2cdb-46fb-4be9-efc4ad234b6d@cs.ucla.edu> <27d2f2eb-8956-4088-f3ec-5ff6c2cf2e8f@cs.ucla.edu> <87eeo27v6k.fsf@gnus.org> <83lfi79klf.fsf@gnu.org> <831rjya5yy.fsf@gnu.org> <8333533f-08ec-acd4-2fbf-f06e78591e98@cs.ucla.edu> <83v9h99awv.fsf@gnu.org> <878s1yjy20.fsf@gnus.org> <83lf5y2t78.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10346"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: teika@gmx.com, 33847@debbugs.gnu.org, eggert@cs.ucla.edu, Lars Ingebrigtsen , ulm@gentoo.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 20:31:21 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6dTd-0002Ye-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 20:31:21 +0200 Original-Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6dTc-0006xN-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 14:31:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6dTK-0006wv-CR for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 14:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6dTK-0002U9-3k for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6dTK-0004Jb-1C for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 18:31:01 +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: patch Original-Received: via spool by 33847-submit@debbugs.gnu.org id=B33847.162697863016547 (code B ref 33847); Thu, 22 Jul 2021 18:31:01 +0000 Original-Received: (at 33847) by debbugs.gnu.org; 22 Jul 2021 18:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:41587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dSo-0004Ip-98 for submit@debbugs.gnu.org; Thu, 22 Jul 2021 14:30:30 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:48184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dSl-0004Ia-HR for 33847@debbugs.gnu.org; Thu, 22 Jul 2021 14:30:28 -0400 In-Reply-To: <83lf5y2t78.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jul 2021 19:45:31 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210537 Archived-At: >>>>> On Thu, 22 Jul 2021, Eli Zaretskii wrote: > However, it sounds like Ulrich wasn't happy with this solution back > then, I don't think I said that. I was only surprised that the fix was so complicated. :) > so perhaps we should first see that the problem still exists and that > everyone involved are okay with installing this, modulo minor fixes? The problem still exists in the current master: If the server is started in a non-XDG environment then it will create its socket in /tmp, and an emacsclient started in an XDG environment won't find the socket. In my original report I had suggested: | - Have emacsclient fall back to TMPDIR as well when no socket is found | under XDG_RUNTIME_DIR. I have tested the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33847;filename=client.patch;att=1;msg=123 and the client falls back to /tmp as it should.