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: Mon, 24 Jun 2024 14:39:20 +0300 Message-ID: <864j9id0yf.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> <87tthjgyct.fsf@> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13358"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 71732@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 13:40:19 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 1sLi3X-0003Dm-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 13:40:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLi3J-0003Qk-1M; Mon, 24 Jun 2024 07:40: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 1sLi3G-0003QN-Nt for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 07:40: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 1sLi3G-0001FX-BX for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 07:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLi3G-0007ue-Vs for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 07:40: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: Mon, 24 Jun 2024 11:40: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.171922917530353 (code B ref 71732); Mon, 24 Jun 2024 11:40:02 +0000 Original-Received: (at 71732) by debbugs.gnu.org; 24 Jun 2024 11:39:35 +0000 Original-Received: from localhost ([127.0.0.1]:53517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLi2p-0007tV-8D for submit@debbugs.gnu.org; Mon, 24 Jun 2024 07:39:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLi2n-0007tD-4i for 71732@debbugs.gnu.org; Mon, 24 Jun 2024 07:39:34 -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 1sLi2f-0001BA-2z; Mon, 24 Jun 2024 07:39:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4/JoV34jonzj8T/xCiQwxfd3A4tHs8RPAZbdsul598w=; b=Mt15034mtOMPgzBOqObX I/1Gg3Al7k508bQ/694X/eVflBXNd6pfnL6M1mTCPjHcfwuY9YULV7eVmpbsqzkB2EdHwAeTUon96 z1NEr2a8B8WN8HueM3Y5djmmjKG9Mkjmrnz9be5fxH02cePmwgMM5DpRb5hKefzzrwKPnQ/SDEFq1 nwbDxw6NV8XdNQuHTjjmTtzCp3sD50spds36/FU25X6wvoxUwpg8Il7ztOhgeM0TIReOH3gWQcFKv a0ekDWN/wOTSYSkEmqEP/AZz+S0BXjg6Oj8/okd/vWuqpvsVZohBrs8b9NA/R9s7TQTocUsU2SNw8 t+fxHIvMgt9eSg==; In-Reply-To: <87tthjgyct.fsf@> (message from =?UTF-8?Q?Bj=C3=B6rn?= Bidar on Mon, 24 Jun 2024 00:09:38 +0300) 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:287827 Archived-At: > From: Björn Bidar > Cc: Ihor Radchenko , 71732@debbugs.gnu.org > Date: Mon, 24 Jun 2024 00:09:38 +0300 > > Eli Zaretskii writes: > > >> From: Ihor Radchenko > >> Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > >> Date: Sun, 23 Jun 2024 11:42:47 +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 guess the point was that the caller should follow XDG or the > respective standard on non-xdg platforms and to at least advice in > following those. > Emacs should integrate into the target platform if possible saving files > into the right directories should be something possible. > > "Blindly" following xdg or the respective platform for generic modus > does not sound like a wrong idea to me good defaults are valuable. The purpose of xdg.el is to represent the XDG directories to Emacs. It is then the job of the Lisp programs which use xdg.el to decide whether they create a directory and which permissions to give it.