From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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 10:20:34 +0000 Message-ID: <87msncufil.fsf@localhost> References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 12:20:13 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 1sLKKT-0009hX-AL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 12:20:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLKKL-0006NO-7P; Sun, 23 Jun 2024 06:20: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 1sLKKI-0006Mu-Iq for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:20: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 1sLKKI-00016L-9C for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLKKI-0002G5-HR for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2024 10:20: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.17191379428543 (code B ref 71732); Sun, 23 Jun 2024 10:20:02 +0000 Original-Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:19:02 +0000 Original-Received: from localhost ([127.0.0.1]:52939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKJJ-0002De-D9 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 06:19:01 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:33907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKJH-0002DE-Dw for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 06:19:00 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A0B02240101 for <71732@debbugs.gnu.org>; Sun, 23 Jun 2024 12:18:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719137932; bh=3SntGSH1wL0x1IDUzygWvvJCeIIyb+gLP4nnK2/Vn/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=YV+YE5/tkQX9bFs83L3wTBynV0a3n8YQcfXt5lB8wQmduxzz2GuB9JyuGtd9hVNek ObV3NgyKwGm3V591APkyigGsPyfaaFPWycDjv9IhxPoAyuhZCOJgu+Q1g6d7YhRRDg 7VbBhIhj476dQUYcKz2eLuri9U+hAl6IoJdvIDzN2zrdao4qyGRPD8M8PaZKfU8hCM WagO2AQtJWV7qULopVs50s9sBwqDAbjHRCkg7wJHVCnJfPqNJbKeadK/saivzr0fdH 6CbHlZAMi3gnZYPivPGJ7CQnmRoIDqaN9nH2Hoz5PQF47PebZnPkKM/NTjkRhaHm22 7IcUyEwCgiYfw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6Rrq5z1qz9rxG; Sun, 23 Jun 2024 12:18:51 +0200 (CEST) In-Reply-To: <86v820dl2d.fsf@gnu.org> 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:287773 Archived-At: 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. I believe that such technical details would fit within xdg.el API. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at