From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68255: 28.2; Can't connect to emacs daemon after logging out and back in. Date: Sat, 06 Jan 2024 08:54:24 +0200 Message-ID: <83zfxjt0in.fsf@gnu.org> References: <83zfxkuhlp.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27018"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68255@debbugs.gnu.org To: Jeremy Phelps Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 06 07:55:28 2024 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 1rM0ae-0006pA-15 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jan 2024 07:55:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM0aB-0003Vc-00; Sat, 06 Jan 2024 01:54:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rM0a9-0003V4-VQ for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 01:54:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rM0a9-0005qY-NO for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 01:54:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rM0aE-0005uP-Ek for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 01:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jan 2024 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68255 X-GNU-PR-Package: emacs Original-Received: via spool by 68255-submit@debbugs.gnu.org id=B68255.170452408722682 (code B ref 68255); Sat, 06 Jan 2024 06:55:02 +0000 Original-Received: (at 68255) by debbugs.gnu.org; 6 Jan 2024 06:54:47 +0000 Original-Received: from localhost ([127.0.0.1]:58444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM0Zz-0005tm-Gj for submit@debbugs.gnu.org; Sat, 06 Jan 2024 01:54:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM0Zw-0005ta-SJ for 68255@debbugs.gnu.org; Sat, 06 Jan 2024 01:54:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rM0Zm-0005p4-KI; Sat, 06 Jan 2024 01:54:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AYJsGNd1NPslQCWSD7Dw73hifdUgj5uMKc3t3hcAYiI=; b=jOvvVdDDNIUo SDMNKno2py751tmd4IDBfAHzZjgoHRyYUd1zf/NBZF7IFS4cX4DMzSFuKwkTef2zWuXiS0KSm5CNO 7LMLLLCLsVH0u0ZIX83cmZsViotlN0yytIDz09td1zzzFsASgGdO5ski6m6TvZpXjH7V93CCsiKO7 MaEwAg/vPFcfE95vzwx6CvBIEZdkp1WUZlWQBehvRKvcyf9bSdyNJhk44+pVLvV5pRxsj2ghdeqE3 BqlsEOsAULGY8vGydKxdtHRo3oiDQW9GX6qlKFNFrMACSuHuPsZabYOxHczAqpymP4R4JUOZZ/fPS bnqH/TRAeRN5TRwlT5XAyQ==; In-Reply-To: (message from Jeremy Phelps on Fri, 5 Jan 2024 15:13:43 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277430 Archived-At: [Please use Reply All to reply, to keep the bug tracker CC'ed.] > From: Jeremy Phelps > Date: Fri, 5 Jan 2024 15:13:43 -0500 > > > If the above analysis is correct, then you can customize 'server-name' > > to be an absolute file name of the directory where you want the socket > > to be created, and invoke emacsclient with the --socket-name=NAME > > option (or set EMACS_SOCKET_NAME=NAME in the environment), where NAME > > is the same directory as in the value of 'server-name' option. Did > > you try that? > > I did not try that, and I wouldn't be able to test it without reinstalling Emacs > to get rid of my workaround. Well, I'd encourage you to try this, because if it works, then there is a solution to this situation, and if it doesn't work, we need to fix whatever prevents it from working. > But given that XDG_RUNTIME_DIR is ephemeral, and > the Emacs daemon assumes it is not, it makes little sense to use it. It would > make more sense to create a directory under ~/.emacs.d if security is the > reason for using the XDG directory instead of /tmp. I hear you, but other people disagree. Some don't need to leave the Emacs daemon running when they log off, and some say (AFAIU) that the XDG directories don't get deleted when they log off. So we support both methods, and the XDG support takes precedence because most users prefer it, AFAIU.