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 15:21:05 +0300 Message-ID: <86msnbetou.fsf@gnu.org> References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> <87msncufil.fsf@localhost> <86sex4dkij.fsf@gnu.org> <87jziguesw.fsf@localhost> <86r0cnew34.fsf@gnu.org> <877cefvqa0.fsf@localhost> <86o77reuz2.fsf@gnu.org> <874j9jvowr.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37294"; 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 14:22:29 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 1sLMEl-0009Th-PK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 14:22:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLMER-0002IW-Lv; Sun, 23 Jun 2024 08:22:07 -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 1sLMEN-0002IF-Gt for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 08:22:03 -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 1sLMEN-0008M9-8x for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 08:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLMEM-0000yO-EC for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 08:22:02 -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 12:22:02 +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.17191452793657 (code B ref 71732); Sun, 23 Jun 2024 12:22:02 +0000 Original-Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 12:21:19 +0000 Original-Received: from localhost ([127.0.0.1]:56991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMDf-0000wv-3c for submit@debbugs.gnu.org; Sun, 23 Jun 2024 08:21:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMDc-0000wf-Ur for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 08:21:18 -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 1sLMDW-0008IZ-JV; Sun, 23 Jun 2024 08:21:10 -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=jI4GoCGLKgx6dxKi6ZhNpcO8PtSfriaDEZ0b/8Ncvgg=; b=IYlVKLwlLFJB oV6ljGkPOFNAb7pRmTnBkKu0NGn7/okTNUht0A1jVNklPkskDLWXmEsWpQ7lnWcEJKwiHKgSZlpvP XqQ+cI3yBMolmPKTj7wErdCZoQ+CSONELW8o1Sea9MECbXVzJBNsYZmjJ5YyuuJVi+CH0tXZbPBp1 oHZOBJTXPoSShPt+AVtjzAju3aBvKd+uncHhWxmGiba0qs8n4kAMIjy/CX0gQaMWCCY0jYFMFDbxu z7GIGq1XWeWDLtXD+1uGFTMNb3hmnvCwPjD9RCmH7V0EECXAAV0OROokacbxh/g9a1/74cwbBv1eI b/3InNDhYwKpgOYg2yh7mg==; In-Reply-To: <874j9jvowr.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 12:12:20 +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:287780 Archived-At: > From: Ihor Radchenko > Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > Date: Sun, 23 Jun 2024 12:12:20 +0000 > > Eli Zaretskii writes: > > >> According to > >> https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html, > >> 0700 permission is a part of XDG spec. > > > > I already explained that: we don't blindly follow any standards, and > > this particular issue is up to the calling Lisp program. xdg.el has > > no business forcing permissions on the caller. > > I do not ask to force the permissions. > I am asking to provide an API function that will create XDG dir with > appropriately assignment permissions. It will be up to the xdg.el caller > to use that API function. Like I said earlier: this is a two-liner: (with-file-modes 0700 (make-directory DIR t)) where the value 0700 is something the Lisp program should control. I see no reason to provide an API for such simple code, let alone do that in xdg.el. And if you still don't agree, let's at least agree to disagree. because this argument begins to revisit what was already said.