From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 05:39:15 2024 Received: (at submit) by debbugs.gnu.org; 23 Jun 2024 09:39:15 +0000 Received: from localhost ([127.0.0.1]:51720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLJgp-0000tH-6F for submit@debbugs.gnu.org; Sun, 23 Jun 2024 05:39:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:49296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLJgn-0000t4-H7 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 05:39:13 -0400 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 1sLJgm-0007xU-U9 for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 05:39:12 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLJgk-0002qp-GD for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 05:39:12 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A16D7240103 for ; Sun, 23 Jun 2024 11:39:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719135546; bh=e9XeT/ymDqOi45OL+z2IqNejxxNEJ8HgtL5semve2Ks=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=enZ6FV5WmkmgMCVaYMcAZP2X+nAQcBFNZvXIiWxnoXDOj62ENl5GPNy4FlBlswS5w 2qpyEa0GJLG+7zgvwtpT3Nc6yoRJWfhZrRDTWeN5HoiF6VX2DKE3/OxHRZyM2s3BC3 Uo3CKRXYLiwsiNC+hayAu1aYHA4h+KZ1fsQqZAHtvCatZ8gjrA/GIW364i4x89GXI7 ha+34Df/adv7IIkWa6ETTcZknP0W3Qjk9L3XUbdOwBv7xcvGXkXfH2S9BHuiCwbgS1 2PAaTP41sClmkwFzbg3GlIL32hKYwfLtho5SSFGx2TaRuypj10E+Mw+QQoeuEvcT11 KKya2HwLUUjGg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6Qyy1GSdz6tyn for ; Sun, 23 Jun 2024 11:39:06 +0200 (CEST) From: Ihor Radchenko To: bug-gnu-emacs@gnu.org Subject: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist X-Debbugs-Cc: Eli Zaretskii , =?utf-8?Q?Bj=C3=B6rn?= Bidar Date: Sun, 23 Jun 2024 09:40:49 +0000 Message-ID: <87pls8uhcu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Follow-up from "Please document the caching and its user options" https://yhetil.org/emacs-devel/86le35rwyp.fsf@gnu.org/ Currently `xdg-cache-home`, and other functions in xdg.el only return the path, but never create any directories. However, to follow XDG spec, XDG directories must follow certain rules. In particular: If, when attempting to write a file, the destination directory is non-existent an attempt should be made to create it with permission 0700. If the destination directory exists already the permissions should not be changed. https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html 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? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 06:12:55 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:12:55 +0000 Received: from localhost ([127.0.0.1]:52731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKDP-0001z5-EQ for submit@debbugs.gnu.org; Sun, 23 Jun 2024 06:12:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKDM-0001ym-79 for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 06:12:53 -0400 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 1sLKDG-0008Tf-EW; Sun, 23 Jun 2024 06:12:46 -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=1l+qIRecF4kuv1yBhpXOTOn2Rpq9L9OP32RnbtNEPNU=; b=niLzRz7l+smUE2BTNpLB kv+JtsCmgD/dVMFKwqyuJ8jb7R5guKjbECTmCQaK6lm3OxdRrrggq4n2NF037HpEC/GOg9Foe4U/N 69D+I1hPmHXOCKS9njx50bRJSPAmU8TZLJGyw+6alVviYRoMIMxDb/POEZ4vWEJ6xMA9NMjWc45BB 5KQCXIni9lMMPoD+gNGNxSRApeUiBjJ0TVtyNQnSLOyie5l7lDuE6rGi/OTzaNvQKr9PO2KdbqmYD eEFroZNtTr9wnQVDaepbdGuLz3AL7+GTC6H31kr53yEEcDNkEXJjuWroWCaqDfxjApE1LxH3x7Y+L qq9GMbVWr/vFXQ==; Date: Sun, 23 Jun 2024 13:12:42 +0300 Message-Id: <86v820dl2d.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87pls8uhcu.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 09:40:49 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist References: <87pls8uhcu.fsf@localhost> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Eli Zaretskii , Björn Bidar > From: Ihor Radchenko > Date: Sun, 23 Jun 2024 09:40:49 +0000 > > Currently `xdg-cache-home`, and other functions in xdg.el only return > the path, but never create any directories. Yes, because whether or not to create a missing directory is up to the calling application. For example, if the application is looking for a file in several possible locations, then a missing directory means that particular location doesn't have the file, and the application should look in the other places. > However, to follow XDG spec, XDG directories must follow certain > rules. In particular: > > If, when attempting to write a file, the destination directory is > non-existent an attempt should be made to create it with permission > 0700. If the destination directory exists already the permissions > should not be changed. > https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 06:19:01 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:19:02 +0000 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 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 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== 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) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <86v820dl2d.fsf@gnu.org> References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> Date: Sun, 23 Jun 2024 10:20:34 +0000 Message-ID: <87msncufil.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 06:24:47 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:24:47 +0000 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 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 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==; Date: Sun, 23 Jun 2024 13:24:36 +0300 Message-Id: <86sex4dkij.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87msncufil.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 10:20:34 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> <87msncufil.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 06:34:25 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 10:34:25 +0000 Received: from localhost ([127.0.0.1]:53541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKYD-0002nb-3F for submit@debbugs.gnu.org; Sun, 23 Jun 2024 06:34:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLKYB-0002nH-JX for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 06:34:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 16F33240027 for <71732@debbugs.gnu.org>; Sun, 23 Jun 2024 12:34:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719138857; bh=kanrja3ANwvQTy7GpEX/j9k1FIfEpdCG+ksEV8URRO8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=r7GrbqIhJltNMzpMbtjZNIZPinHl/jBQw32R5GpUCqVH+wy121N4GTQYRhjYo9rbv Ypf/y9XYqvWQ5Y1JB+l6e+SrK0mjd+0VW4FzRvBVtWMYogHJvzAfdlIwNGqUIEJRcl sc9t5THEEPRl/2RFdoDLgPcoNqMBqt16xUx+0WSMsJpylrruWO69U9cJLa4FmCSemV isJb7S1PQo5BWHDwt2WxxQpONyE1YnAmsq76CgK6j521ohVqEYxDss8b72DYeWv0i0 zs5vIcDRvKnT4cetQBJNK4A9hkhFxovXjkmcKZNLX7ac72v75PA5CyniBOCYUkpwUp dSZbCsC5LbTHA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6SBc4l76z9rxF; Sun, 23 Jun 2024 12:34:16 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <86sex4dkij.fsf@gnu.org> References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> <87msncufil.fsf@localhost> <86sex4dkij.fsf@gnu.org> Date: Sun, 23 Jun 2024 10:35:59 +0000 Message-ID: <87jziguesw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > 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. Let me clarify: I did not mean creating a directory _under_ XDG directory. I meant creating XDG directory itself - it is regulated by XDG spec. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 07:31:43 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 11:31:43 +0000 Received: from localhost ([127.0.0.1]:55316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLRf-0007k1-EQ for submit@debbugs.gnu.org; Sun, 23 Jun 2024 07:31:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLRc-0007jj-Km for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 07:31:41 -0400 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 1sLLPP-0006pG-EC; Sun, 23 Jun 2024 07:29:23 -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=b+Pzkx7rIwd6AWqD++fv+kaXHglmr9h3PX+7hlHtBFA=; b=gMhACHR3xcGr bINbVRKcUovnBC9dppiP/XMe4uP+lFd3mOSSTA8h62XM5R8HObHrgrkWeRCd0ku7tXENlRoG6LKQK /ok6E2tnOa+dYpcDfmd6s074tf3S8fDlq5qiqUbrWzYVfBZYN4SvClH6GSL4DkpbohT2Mf0+OhUGw pBTtX1Z0ledzoH3eh35Lr26XcckGa3foby5rxBNx5+bjcz54e+FqqqMlC6kuxXJ/F5EA/19isSE6d a9pkvG2HoFeu12k716FKGbMOh2ptZSC6/Pkkc+aU8ZD9g2CY5Xs/0CM9dis50Qm9caPNr8MCcqJ0i 0FuCHnpBsUSStptzv1O7Mg==; Date: Sun, 23 Jun 2024 14:29:19 +0300 Message-Id: <86r0cnew34.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87jziguesw.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 10:35:59 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist References: <87pls8uhcu.fsf@localhost> <86v820dl2d.fsf@gnu.org> <87msncufil.fsf@localhost> <86sex4dkij.fsf@gnu.org> <87jziguesw.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ihor Radchenko > Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > Date: Sun, 23 Jun 2024 10:35:59 +0000 > > Eli Zaretskii writes: > > > 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. > > Let me clarify: I did not mean creating a directory _under_ XDG > directory. I meant creating XDG directory itself - it is regulated by > XDG spec. Yes, I understood, and my response includes that part as well. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 07:41:15 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 11:41:16 +0000 Received: from localhost ([127.0.0.1]:55585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLat-00082V-HX for submit@debbugs.gnu.org; Sun, 23 Jun 2024 07:41:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLar-00082A-HJ for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 07:41:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4ACE6240101 for <71732@debbugs.gnu.org>; Sun, 23 Jun 2024 13:41:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719142866; bh=DUt8GSgfWX5TwXmMYJtHz3+H/bUAzIXl/NlRHbweQ8c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=YETsYFyBRSQxPSwXqIS1BK77i1GZTtWeJeHVJ43IJL8ErbcUcKcPX6gy0VD4XeAQf AIExTj7sSWjla5VmyjBBZomOTtH4VI2nBYJpV6VC4moPJuOg/K5N49fjE2Lh9VIGyb /sgKojGnEH3efOyyFG48DZMBcRsM9Eb8BvktYzKdTVuh7slUxe+LgKdWbXg/3szCBL r2oEkCS0yQQF4aZOcBhNpEgGRYNADsDJNujrg2ETxrOBbzSi39GanWD5PjSobAWktb DmzCtwsIxwgfNbHM+KwLn40ZA7jM+QbscFl/F3BliOzTRFBHUaZmGH6JSB/fEMtOmt HIVZm3m5B9L5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6Tgh2tchz6tyK; Sun, 23 Jun 2024 13:41:04 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <86r0cnew34.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> Date: Sun, 23 Jun 2024 11:42:47 +0000 Message-ID: <877cefvqa0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Let me clarify: I did not mean creating a directory _under_ XDG >> directory. I meant creating XDG directory itself - it is regulated by >> XDG spec. > > Yes, I understood, and my response includes that part as well. Then, I do not understand your >>> ...I disagree, mainly because the details are not part of XDG According to https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html, 0700 permission is a part of XDG spec. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 07:53:35 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 11:53:35 +0000 Received: from localhost ([127.0.0.1]:55960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLmp-0008Qf-03 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 07:53:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLLmm-0008QK-Cr for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 07:53:33 -0400 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 1sLLmf-0002uf-AE; Sun, 23 Jun 2024 07:53:25 -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=GXHqWDBPo1tur/9y+h3ZU46Fg3rObz+WQmiwcAfhuQk=; b=XbTsyXogEtfo BNbWR885EJhOnEYJnuqjhaSTOzgCQt6w2f5QkshMZRoSpFjkZM6bF0iAcWr1xmjP0Phuy8A1XpPYI djavBfzdXCqOhz+2TBqUeA+1Q8/5eg+d9SiS6RxD0ewBLl9wbd2Y65iExqR3oi8REj3o/L3AF1ice VeVI1OrUpv7OcjdSduld1QDHvhoW5urYgy6SdDitFTbkY6cn3qxaac0lPEaeCP0zFYXsYDn+IKseY 969KW0/Cky97gjRfPUQnRYyaiccgJHDQKEKQ4gkG+VDOY/jXsve/ApP7N1s+taFB/xgXSLMu0ZIPu +BGspg4aOTtFs/K61oCTkQ==; Date: Sun, 23 Jun 2024 14:53:21 +0300 Message-Id: <86o77reuz2.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <877cefvqa0.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 11:42:47 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ihor Radchenko > Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > Date: Sun, 23 Jun 2024 11:42:47 +0000 > > Eli Zaretskii writes: > > >> Let me clarify: I did not mean creating a directory _under_ XDG > >> directory. I meant creating XDG directory itself - it is regulated by > >> XDG spec. > > > > Yes, I understood, and my response includes that part as well. > > Then, I do not understand your > > >>> ...I disagree, mainly because the details are not part of XDG > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 08:10:50 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 12:10:50 +0000 Received: from localhost ([127.0.0.1]:56582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLM3V-0000Zs-Lk for submit@debbugs.gnu.org; Sun, 23 Jun 2024 08:10:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLM3S-0000ZX-0m for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 08:10:47 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54936240028 for <71732@debbugs.gnu.org>; Sun, 23 Jun 2024 14:10:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719144639; bh=b+n2zbSQHDondipbXjzlry5SkrSuYHC2vNisA2C16ug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=RZ4KFcY/bL5hUA81+2BZTqL+dFsZvZavODaRDfyTF8M94pveF1oGZRK1QXfEa8n03 KIZWBbVoSy7Ntr+RFMFYcpRJ1qDOtTMBZWOA8rITus4l5b50APyP/JrFVYU3Lswe71 KyTTk1YmH9E5Oj5Fc7d68iOdG8HhLvOFWDmyH0KvClb+POrKcCSIqjMvJvvd99FoM5 vrNnXFL3XKdQMt9+M+YJIwzT7OiRbMfIEL/Ak+x///eZAs+FoN2fu0XZj9mWwwlrd5 sQXYPvw0S77q6kftvwT6WpIsW0tTlxUYnWgImt95RmTtllug21UK5pwDqEcCE6uhj1 inRkcItZz9DuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6VKn6hHsz6v0C; Sun, 23 Jun 2024 14:10:37 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <86o77reuz2.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> Date: Sun, 23 Jun 2024 12:12:20 +0000 Message-ID: <874j9jvowr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 08:21:19 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 12:21:19 +0000 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 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 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==; Date: Sun, 23 Jun 2024 15:21:05 +0300 Message-Id: <86msnbetou.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <874j9jvowr.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 12:12:20 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 08:27:18 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 12:27:18 +0000 Received: from localhost ([127.0.0.1]:57251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMJR-0001AQ-JC for submit@debbugs.gnu.org; Sun, 23 Jun 2024 08:27:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMJN-00019v-7u for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 08:27:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 55460240028 for <71732@debbugs.gnu.org>; Sun, 23 Jun 2024 14:27:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719145626; bh=W3NvIpoqBgsnbGbjkX65j5vC4oMmpw3dtoiICbXpLoc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=b7R6iXilIFtPp6mLxz2zD1abSd1azR/NnfbnoiiJV7EmGW0BoR7jHyHfenxu90hHq DfRz2klyY4dEWMYfhOudjHjwVYkdN5tvwRcfKRmyM8nqgdTL0YeuT+tw76LS3rgSCQ BaFhQsgRNaSA7kSq9hSvAbEGwj66zJUXmD4CGmGynspnYqpf8CeaQykXE3bdy/j6E1 WweBU5j0VgxvGGW4wNIHAnI+MJIGWwqvSxUu3M0KRouqSWFfjXDJwm+mIzGE6hp7/S S3PCnBAZ4MW/8nMpgEQHbhFzXUpChJYtH2cCvQpbyBpOjcweIF2TIWRmcnmIixK3pH pLMdQNTYXocpw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6Vhn4wwSz9rxK; Sun, 23 Jun 2024 14:27:05 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <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> <86msnbetou.fsf@gnu.org> Date: Sun, 23 Jun 2024 12:28:48 +0000 Message-ID: <871q4nvo5b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: bjorn.bidar@thaodan.de, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> 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. Yes, it is a two-liner, but 0700 requires familiarity with XDG. > 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. Ok. Then, feel free to close the feature request. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 08:37:07 2024 Received: (at 71732-done) by debbugs.gnu.org; 23 Jun 2024 12:37:07 +0000 Received: from localhost ([127.0.0.1]:57625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMSw-0001XO-J9 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 08:37:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLMSf-0001WU-4u for 71732-done@debbugs.gnu.org; Sun, 23 Jun 2024 08:37:04 -0400 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 1sLMSX-00030W-UW; Sun, 23 Jun 2024 08:36:41 -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=qkCL82cgCCbWBhlcjHrGeNyXa+06JTTkMzoA8Ml7tGY=; b=pXHF+vKxFSEt 0ZC39a2nLBwiurOMTI47MGq0aJ+l7ISiDGOpGtoC+0aEhAzKmjzH7pCwroZ3Y2Id/tkqHwiIlbJdD u+rSjyufisdAbJ8GeeuyXHAQu4zWDLPXExdiI+32e2TJUlm1BUZ1Jk3DtB/dIt8jLgb0POvRNqPQg k4NXRXJeUbRvQc5ygCYKpNDbi9UllFlcwRzMdgm9Y9vvoNIOmFnMJoyrzSYoOnFOBjLLyModN9j/h JqlaAnCMac5JRQ3SyiHyRVPQMtkAyJjfM3gBHvkhuTlmWea54gWbNdgC7MuqfDDBfJUSaCFkKnWBK 0iAayGcgyh1ceIx2ta9sJQ==; Date: Sun, 23 Jun 2024 15:36:37 +0300 Message-Id: <86jzifesyy.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <871q4nvo5b.fsf@localhost> (message from Ihor Radchenko on Sun, 23 Jun 2024 12:28:48 +0000) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist 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> <86msnbetou.fsf@gnu.org> <871q4nvo5b.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732-done Cc: bjorn.bidar@thaodan.de, 71732-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ihor Radchenko > Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de > Date: Sun, 23 Jun 2024 12:28:48 +0000 > > Eli Zaretskii writes: > > >> 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. > > Yes, it is a two-liner, but 0700 requires familiarity with XDG. No, it doesn't. It requires the decision which modes to use, which is independent of what XDG mandates. > > > 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. > > Ok. Then, feel free to close the feature request. Done. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 17:09:48 2024 Received: (at 71732) by debbugs.gnu.org; 23 Jun 2024 21:09:49 +0000 Received: from localhost ([127.0.0.1]:51193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLUT6-0001KP-J1 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 17:09:48 -0400 Received: from thaodan.de ([185.216.177.71]:58406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLUT4-0001K9-CJ for 71732@debbugs.gnu.org; Sun, 23 Jun 2024 17:09:47 -0400 Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id D368AD00064; Mon, 24 Jun 2024 00:09:39 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1719176980; bh=iMdxhEQ24c4DRkuxsW71eBwZ4AQPr4Y9Hoy3OJ/uXqc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=jv2A0oFQA0cMfOu+EVUSbcgnNRRw8myIHkT18QBngqV5/HcTQaGtM1l8zgMDq7d9a RiPwjwCvkLHspH5bi2al2WAy3aPTOgP4OcMxMWH5hIIgfSs6A8ky1mMtoNehB5bmoT QQEmbmxaxia3j3CsIQQ3ADhWqz6+KhNoySCdlkyxufS6tw7N3kxMotZEE+AYG4/Hzh mPU/beaonurkwXeguTx6Y+su+Ftux8+JvxCbv00We97/Z/aBWf48Y2GhsgeGnv35Gf A5EWksbiRO80NHw0xV0b6uRcVMkc02qQolXukqFNGQhRmu8aGnsJGP1xmKTPyLRWNf lOwLE7FKIbdcbTGVGA14gfFzRSDjqi9Vw5bbP5BG3VYUP9cQO7R87tD9iCuvpI/SVO 06HYghFyMkSRegAv3mcjae9BUIHRTQqT4jd+Tff+x3ungrJd/Fc0r+4WkWwmx6slCO zA3kNmPoj5cope/8JwaLDIvduHa/vRBsgPImRoC/1uAfarwyH58nC0LW6k63J0GxAv PniqvusyulTypxooZXPDb6ttI9tx70wn5J2uTJRaz7CcucoxECmAuO/wcNY16FJKhn 0Q/oSaYZ9n94cTZroWpYLr7Fu0iJ8kHhMWQNfEBuhZpQVa1baJLBME9HvlLzfNSME0 p4byQtv+U6vS97Rrm1XbmdV8= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <86o77reuz2.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Jun 2024 14:53:21 +0300") 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> 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 gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Mon, 24 Jun 2024 00:09:38 +0300 Message-ID: <87tthjgyct.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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: >> >> >> Let me c [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 71732 Cc: Ihor Radchenko , 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 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: >> >> >> Let me clarify: I did not mean creating a directory _under_ XDG >> >> directory. I meant creating XDG directory itself - it is regulated by >> >> XDG spec. >> > >> > Yes, I understood, and my response includes that part as well. >> >> Then, I do not understand your >> >> >>> ...I disagree, mainly because the details are not part of XDG >> >> 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 07:39:35 2024 Received: (at 71732) by debbugs.gnu.org; 24 Jun 2024 11:39:35 +0000 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 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 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==; Date: Mon, 24 Jun 2024 14:39:20 +0300 Message-Id: <864j9id0yf.fsf@gnu.org> From: Eli Zaretskii To: =?iso-8859-1?Q?Bj=F6rn?= Bidar In-Reply-To: <87tthjgyct.fsf@> (message from =?iso-8859-1?Q?Bj=F6rn?= Bidar on Mon, 24 Jun 2024 00:09:38 +0300) Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist 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 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71732 Cc: yantar92@posteo.net, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 07:59:39 2024 Received: (at 71732) by debbugs.gnu.org; 24 Jun 2024 11:59:39 +0000 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 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 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= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar To: Eli Zaretskii Subject: Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist In-Reply-To: <864j9id0yf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 24 Jun 2024 14:39:20 +0300") 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> 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 gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Mon, 24 Jun 2024 14:58:58 +0300 Message-ID: <87v81yzh4t.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: >> From: Björn Bidar >> Cc: Ihor Radchenko , 71732@debbugs.gnu.org >> Date: Mon, 24 Jun 2024 00:09:38 +0300 >> >> Eli Zaretskii writes: >> [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 71732 Cc: yantar92@posteo.net, 71732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 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? From unknown Sat Sep 20 14:55:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 23 Jul 2024 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator