Re: [PATCH] XDG base directory support (history and wxt)

Jun T <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
> 2021/09/14 17:35, Petr Mikulik <[email protected]> wrote:

> I don't have $HOME/.local/state.

With my patch, if ~/.gnuplot_history does not exist, gnuplot will try to create
~/.local/state/, and if it fails (permission problem, or ~/.local/ not exists)
then fall back to ~/.gnuplot_history.

XDG_STATE_HOME is new but the spec
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
says this is the place for history, so I used it in my patch.
But XDG_DATA_HOME (~/.local/share) would also be OK since the history file of
gnuplot is "portable" and can be "shared".

Another option is to save everything (including history) in ~/.config/gnuplot/,
but I fear many pro-XDG people will complain...

> I see that QT terminal has its config in $HOME/.config/gnuplot, while WX terminal in $HOME. I think WX config should go to $HOME/.config/gnuplot/ as well.

I guess many users feel the same way.

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.