From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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:58:58 +0300 Message-ID: <26661.3855537557$1719230423@news.gmane.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> <864j9id0yf.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5557"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, 71732@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 14:00:15 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 1sLiMm-00016O-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 14:00:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLiMd-0002AX-Ho; Mon, 24 Jun 2024 08:00:03 -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 1sLiMc-0002AE-8a for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 08:00: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 1sLiMb-0005Rm-O8 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 08:00:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLiMc-0000Bl-9x for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 08:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2024 12:00: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.1719230379638 (code B ref 71732); Mon, 24 Jun 2024 12:00:02 +0000 Original-Received: (at 71732) by debbugs.gnu.org; 24 Jun 2024 11:59:39 +0000 Original-Received: from localhost ([127.0.0.1]:54322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLiMF-0000AE-6e for submit@debbugs.gnu.org; Mon, 24 Jun 2024 07:59:39 -0400 Original-Received: from thaodan.de ([185.216.177.71]:53562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLiMC-00009W-AV for 71732@debbugs.gnu.org; Mon, 24 Jun 2024 07:59:38 -0400 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id 44A19D00016; Mon, 24 Jun 2024 14:58:59 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1719230339; bh=Hs3+p9xwS1Ko5hZJkGnu/tubY1Og3ihKmnXKoZ5Z5SM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=icn+kxsxa0lPh7VF5pv/o1xZmNQ9uniEszGa65ug2GbfEGMiYFHfNLKzItPC8f4tt ylvv+EdVEbTt5fmJitMlP+Vrh92+cVkWIPEdMjrxD1rKSqebJJl/n4j0kF+vZoTNUH c9gaiJXDhccDNrXaMe1QzAE0RdRb+Th58rec+8fwA8GilULsQBDF+B2ArswuMuznXL 9nktIbVK3Eo2v+Ikmge1iI7Cl6dGBVc5+e9Ej/xBaLHbFNsqeatBybDoh0JeSHjOB+ Pa6JlC42YPwMzPjdIRPw+iqJLndC6B4SdRCe2RX6UC1qMjtWNWgus2vZmYIVConVqf AMgaV+XE60RLvxqPECrc/kryyMx6qdi7ww5DydBFbgALiwp8vdFYJ3qVXzHJU9YG4B jnLDeBXJcG4NEQao1nknq9TpvmwCVNo63CrL4zLD9ZcTHjPobk5nIBmnlhOaHbbZTT 1bSpKbiadkMphx+vHtI8kIFpjKOB3J5tsdvc1mwLe8IDSz33Yc4ENDfRgsIaNIpixO DOirVuTe5FhAI0iRtLkK5BqNMfSYMVgA1FBFYAXhiAXlctLsvSAs2qzDjZwjeapY9E AdUX8Br3gIGeAVzQOQZhBAJx2xN875miG0JxgN3KO0Ny8qsoKVA4BiyLDkOl5CJh0G cBD4GqyNGsgyMRArBPVOfP8o= In-Reply-To: <864j9id0yf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 24 Jun 2024 14:39:20 +0300") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:287829 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: Ihor Radchenko , 71732@debbugs.gnu.org >> Date: Mon, 24 Jun 2024 00:09:38 +0300 >>=20 >> Eli Zaretskii writes: >>=20 >> >> From: Ihor Radchenko >> >> Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de >> >> Date: Sun, 23 Jun 2024 11:42:47 +0000 >> >>=20 >> >> Eli Zaretskii writes: >> >>=20 >> >> According to >> >> https://specifications.freedesktop.org/basedir-spec/basedir-spec-late= st.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. >>=20 >> 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. >>=20 >> "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. Maybe there should be a wrapper on top of xdg.el or the respective platform wrapper then?