bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71732: 30.0.50; [FR] xdg: provide an ability to create XDG directory


From: Björn Bidar
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
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Björn Bidar <bjorn.bidar@thaodan.de>
>> Cc: Ihor Radchenko <yantar92@posteo.net>,  71732@debbugs.gnu.org
>> Date: Mon, 24 Jun 2024 00:09:38 +0300
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> From: Ihor Radchenko <yantar92@posteo.net>
>> >> Cc: 71732@debbugs.gnu.org, bjorn.bidar@thaodan.de
>> >> Date: Sun, 23 Jun 2024 11:42:47 +0000
>> >> 
>> >> Eli Zaretskii <eliz@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 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.

Maybe there should be a wrapper on top of xdg.el or the respective
platform wrapper then?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]