unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist
@ 2024-06-23  9:40 Ihor Radchenko
  2024-06-23 10:12 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Ihor Radchenko @ 2024-06-23  9:40 UTC (permalink / raw)
  To: 71732; +Cc: Eli Zaretskii, Björn Bidar


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>





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-06-24 11:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-23  9:40 bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory, if it does not exist Ihor Radchenko
2024-06-23 10:12 ` Eli Zaretskii
2024-06-23 10:20   ` Ihor Radchenko
2024-06-23 10:24     ` Eli Zaretskii
2024-06-23 10:35       ` Ihor Radchenko
2024-06-23 11:29         ` Eli Zaretskii
2024-06-23 11:42           ` Ihor Radchenko
2024-06-23 11:53             ` Eli Zaretskii
2024-06-23 12:12               ` Ihor Radchenko
2024-06-23 12:21                 ` Eli Zaretskii
2024-06-23 12:28                   ` Ihor Radchenko
2024-06-23 12:36                     ` Eli Zaretskii
2024-06-23 21:09               ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]               ` <87tthjgyct.fsf@>
2024-06-24 11:39                 ` Eli Zaretskii
2024-06-24 11:58                   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).