From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#583: Use XDG basedir spec for configuration files? Date: Wed, 28 Aug 2019 23:22:35 -0700 Organization: UCLA Computer Science Department Message-ID: <8ad91615-e621-7a10-72e2-03277676bd3a@cs.ucla.edu> References: <09f0b6af-213f-cc04-336b-00850ba0f3bf@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="131559"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: ferkiwi@gmail.com, 583@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 29 08:23:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3Dq9-000Xzx-Rg for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 08:23:25 +0200 Original-Received: from localhost ([::1]:45788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3Dq8-00019B-5u for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 02:23:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36241) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3Dpo-00014o-1i for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 02:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3Dpm-0003gJ-R4 for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 02:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3Dpm-0003gC-La for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 02:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3Dpm-0002Xi-Fu for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 02:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2019 06:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 583 X-GNU-PR-Package: emacs Original-Received: via spool by 583-submit@debbugs.gnu.org id=B583.15670597659735 (code B ref 583); Thu, 29 Aug 2019 06:23:02 +0000 Original-Received: (at 583) by debbugs.gnu.org; 29 Aug 2019 06:22:45 +0000 Original-Received: from localhost ([127.0.0.1]:51508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3DpV-0002Wx-GI for submit@debbugs.gnu.org; Thu, 29 Aug 2019 02:22:45 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3DpS-0002Wi-Mf for 583@debbugs.gnu.org; Thu, 29 Aug 2019 02:22:43 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C9726160056; Wed, 28 Aug 2019 23:22:36 -0700 (PDT) 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 zhCQ9YXVRD6j; Wed, 28 Aug 2019 23:22:35 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D7FB0160062; Wed, 28 Aug 2019 23:22:35 -0700 (PDT) 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 Gr9TqmRNZdUQ; Wed, 28 Aug 2019 23:22:35 -0700 (PDT) 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 AFBD6160056; Wed, 28 Aug 2019 23:22:35 -0700 (PDT) In-Reply-To: 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: 209.51.188.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:166036 Archived-At: Glenn Morris wrote: >> And it's not clear that an ELPA package's files should be considered >> "user specific data files" (XDG_DATA_HOME) as opposed to "user >> specific configuration files" (XDG_CONFIG_HOME). > It seems clear to me. They are data, not configuration. You would not > install them under /etc, but somewhere like /usr/share. If I understand correctly, ELPA packages are not really either "data" or "configuration": they're software packages. And the XDG scheme doesn't appear to be designed for installing software packages: it's designed only for user preferences (aka configuration), user data, and information cached for the user. If ELPA packages are just local copies from a server somewhere, it seems the most plausible place for them is the XDG cache (XDG_CACHE_HOME, which is ~/.cache by default) rather than either in "data" or "configuration"; only the list of downloaded packages should be placed in XDG_CONFIG_HOME. Presumably the ELPA package manager could arrange for this. Not being an expert in these matters, I looked at another popular packaging scheme: Flatpak. It appears to put everything under ~/.local/share, i.e., under XDG_DATA_HOME. This includes configuration. See . It's quite a mess, huh?