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#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist Date: Sun, 23 Jun 2024 13:24:36 +0300 Message-ID: <86sex4dkij.fsf@gnu.org> References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> <87msncufil.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 12:25:25 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 1sLKPU-0006BT-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 12:25:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLKPB-0007XH-5S; Sun, 23 Jun 2024 06:25:05 -0400 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 1sLKP8-0007Wu-1s for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:25:02 -0400 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 1sLKP7-0002Ak-LM for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLKP7-0002S6-VA for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2024 10:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71732 X-GNU-PR-Package: emacs Original-Received: via spool by 71732-submit@debbugs.gnu.org id=B71732.17191382879387 (code B ref 71732); Sun, 23 Jun 2024 10:25:01 +0000 Original-Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:24:47 +0000 Original-Received: from localhost ([127.0.0.1]:53194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKOt-0002RL-CW for submit@debbugs.gnu.org; Sun, 23 Jun 2024 06:24:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKOr-0002R7-Tz for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 06:24:46 -0400 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 1sLKOl-00027n-Ln; Sun, 23 Jun 2024 06:24:39 -0400 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=U65wvKT9R2AdcvidxpzlGweWWDTH/lQX8yb8xa7jB00=; b=YD/LQI6b1DVI ri3EuUCryaqUvxrF+G34tVQpcyzUU5wpFEBEjCaBrSczlFw9y8XD/lhiZUozluMiTQ7tJkc+UdjVW mhsPvhXQ96qoiT7EPXGa6Ws51YCneSowY/XrHOw5dt2qgYitZ3/DMxg0IEKZoSs9zee5nNDjdN3V8 dlpRfggwWnIBVMyt2jJxtRDLTyjl7PKzEJ78S/jP1zBWgYRgZK3R+Sz3UTlpHYrw6Cx+jgKGuUJ+j ZlExgj8LJNF3D0GyAxnj4aAKvXe13TypUtrr6M1vy+MUqXxpF/3q4Jp5WBBu54nPzPkFFV9CVOI5T YnbrZDeJZWL/i3rHNdmROw==; In-Reply-To: <87msncufil.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 10:20:34 +0000) 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:287774 Archived-At: > From: Ihor Radchenko > Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > Date: Sun, 23 Jun 2024 10:20:34 +0000 > > Eli Zaretskii writes: > > >> May you please add a functionality to xdg.el to create the directory > >> with right permissions, so that xdg.el users do not need to know these > >> technical details of the spec? > > > > xdg.el is not about creating directories, it is about returning their > > names. > > > > The ability to create a directory with arbitrary permissions already > > exists, and Emacs uses that in umpteen places. So I'm not sure what > > is missing here. Not every two-liner needs a dedicated named API. > > The missing part is creating a directory that follows XDG spec without > having to consult that spec. > > For example, I had no clue that applications using XDG are obliged to > create XDG dirs with 0700 persmissions until someone pointed. Emacs applications are not obliged to abide by what the XDG spec (or any spec) says. Whether a directory we create under some XDG directory should or should not have those permissions is something the author of the Lisp program should consider and decide. > I believe that such technical details would fit within xdg.el API. I disagree, mainly because the details are not part of XDG, they are part of the design and the implementation of the particular Lisp program using the XDG directories.