From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Questions about XDG_RUNTIME_DIR and server-socket-dir Date: Sun, 3 Feb 2019 21:41:49 +1300 Message-ID: <128f5db9-3f28-334d-5dea-2e8ae55cd1a2@orcon.net.nz> References: <32b703fc-e89c-23c3-cf21-74b4af6640f1@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73366"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: Emacs Development To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 03 09:42:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqDLq-000Izm-HL for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 09:42:06 +0100 Original-Received: from localhost ([127.0.0.1]:53098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqDLp-0001fq-Ie for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 03:42:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqDLe-0001fP-Os for Emacs-devel@gnu.org; Sun, 03 Feb 2019 03:41:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqDLe-0000iy-5D for Emacs-devel@gnu.org; Sun, 03 Feb 2019 03:41:54 -0500 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:40479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqDLd-0000iH-Qc for Emacs-devel@gnu.org; Sun, 03 Feb 2019 03:41:54 -0500 Original-Received: from [150.107.172.32] (port=38156 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gqDLa-0008Ia-1l; Sun, 03 Feb 2019 21:41:51 +1300 In-Reply-To: <32b703fc-e89c-23c3-cf21-74b4af6640f1@cs.ucla.edu> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 60.234.4.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232925 Archived-At: On 3/02/19 7:10 PM, Paul Eggert wrote: > XDG_RUNTIME_DIR is a per-user-login directory that is like TMPDIR except > without some of the security problems of TMPDIR [...] > > I don't see the harm in changing it, if each new setting is intended to > correspond to a different user login. That might be simpler than adding > yet another environment variable. In my case a single user login could use multiple values -- each of the Emacs instances (and inferior processes thereof) that the user ran during that login session would be seeing a different XDG_RUNTIME_DIR. If it's intended to be a replacement for TMPDIR though, perhaps changing XDG_RUNTIME_DIR is no worse than changing TMPDIR. -Phil