GNU bug report logs - #71732
30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Sun, 23 Jun 2024 09:40:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 71732 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: bjorn.bidar <at> thaodan.de, 71732 <at> debbugs.gnu.org
Subject: Re: 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
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: 71732 <at> debbugs.gnu.org, bjorn.bidar <at> thaodan.de
> Date: Sun, 23 Jun 2024 12:12:20 +0000
> 
> Eli Zaretskii <eliz <at> gnu.org> 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.




This bug report was last modified 1 year and 59 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.