[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71732: closed (30.0.50; [FR] xdg: provide an ability to create XDG d
From: |
GNU bug Tracking System |
Subject: |
bug#71732: closed (30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist) |
Date: |
Sun, 23 Jun 2024 12:38:02 +0000 |
Your message dated Sun, 23 Jun 2024 15:36:37 +0300
with message-id <86jzifesyy.fsf@gnu.org>
and subject line Re: bug#71732: 30.0.50; [FR] xdg: provide an ability to create
XDG directory, if it does not exist
has caused the debbugs.gnu.org bug report #71732,
regarding 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it
does not exist
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)
--
71732: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71732
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message ---
Subject: |
30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist |
Date: |
Sun, 23 Jun 2024 09:40:49 +0000 |
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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
--- End Message ---
--- Begin Message ---
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:36:37 +0300 |
> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de
> Date: Sun, 23 Jun 2024 12:28:48 +0000
>
> Eli Zaretskii <eliz@gnu.org> 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.
--- End Message ---
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#71732: closed (30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist),
GNU bug Tracking System <=