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 11:11:45 -0700 Organization: UCLA Computer Science Department Message-ID: <09f0b6af-213f-cc04-336b-00850ba0f3bf@cs.ucla.edu> References: 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="127938"; 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 Wed Aug 28 20:12:12 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 1i32QV-000XB1-K6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Aug 2019 20:12:11 +0200 Original-Received: from localhost ([::1]:39482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i32QU-0002tN-CX for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Aug 2019 14:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57057) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i32QN-0002tF-Am for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2019 14:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i32QM-0003V8-7P for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2019 14:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i32QM-0003UT-1d for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2019 14:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i32QL-0003wR-Qq for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2019 14:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Aug 2019 18:12:01 +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.156701591415132 (code B ref 583); Wed, 28 Aug 2019 18:12:01 +0000 Original-Received: (at 583) by debbugs.gnu.org; 28 Aug 2019 18:11:54 +0000 Original-Received: from localhost ([127.0.0.1]:51195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i32QD-0003w0-Pm for submit@debbugs.gnu.org; Wed, 28 Aug 2019 14:11:54 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i32QC-0003vl-GB for 583@debbugs.gnu.org; Wed, 28 Aug 2019 14:11:53 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E2F4716005F; Wed, 28 Aug 2019 11:11:46 -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 e0pr0W56dqA8; Wed, 28 Aug 2019 11:11:46 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 223241600EC; Wed, 28 Aug 2019 11:11:46 -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 OIs9f0NytS6J; Wed, 28 Aug 2019 11:11:46 -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 EC212160062; Wed, 28 Aug 2019 11:11:45 -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:166018 Archived-At: Glenn Morris wrote: > It's great to finally see some progress in this area, but IIUC this is > still not really following the XDG spec. For example, I think a proper > solution would see user elpa packages stored undo XDG_DATA_HOME, etc. > I think the OP points this out. > It looks like what we have at the moment is basically > ~/.emacs.d/ -> ~/.config/emacs/? Yes, that's what Emacs basically has in master now. I don't see where Fernando mentioned ELPA, though. 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). Looking at my own home directory for what other XDG-ish programs do, I see data files under ~/.local/share (XDG_DATA_FILES default): things like xorg/Xorg.0.log, gnome-shell/application_state, gvfs-metadata/home, and evolution/addressbook/system/contacts.db. Programs (if any) are few and far between. (Not that I use many plugins in any programs, so perhaps I'm not the best person to check this.) For what it's worth, I found an old directory named '~/.gimp-2.8' and a newer one named '~/.config/GIMP/2.10' with similar structure. It appears that when GIMP made the transition to XDG style in GIMP version 2.9.2, it did what Emacs just did in master now: that is, GIMP moved all its stuff into ~/config/GIMP. Although I don't use GIMP plug-ins, the GIMP plug-ins directory moved too.