rkd77 / elinks

Fork of elinks
Other
349 stars 38 forks source link

trailing / missing in xdg_config_home? #202

Closed balducci closed 1 year ago

balducci commented 1 year ago

hi

after:

commit 7ea7cacade2edc88c0a66f2a05cc60e716751c3a
Author: Witold Filipczyk <witekfl@poczta.onet.pl>
Date:   Mon Dec 26 17:36:07 2022 +0100

    [.config] Read/write configuration from ~/.config/elinks . Refs #199

I find these in ~/.config:

~/.config/elinksbookmarks
~/.config/elinkscookies
~/.config/elinksglobhist
~/.config/elinksgotohist

as if xdg_config_home in various places misses a final slash.

I have verified that this is indeed the case in write_global_history:

dschgrazlin2:6> ./felinks/.build/src/elinks
GB: xdg_config_home: /home/balducci/.config/elinks
GB: file_name: /home/balducci/.config/elinksglobhist

Thank you very much for your work

ciao

-gabriele

rkd77 commented 1 year ago

Yes, sorry. I did not test this time either. If it does not fix it, I'll write unit test.

balducci commented 1 year ago

AFAICS, it is now fixed

thank you very much