Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pychess default save location #2010

Open
axet opened this issue Mar 19, 2023 · 7 comments
Open

pychess default save location #2010

axet opened this issue Mar 19, 2023 · 7 comments

Comments

@axet
Copy link

axet commented Mar 19, 2023

Default save location for game history set to $HOME. This is very not common for linux apps.

Can default location be changed to default config directory (my optinion this is the best option) '$HOME/.config/pychess' or My Documents $(xdg-user-dir DOCUMENTS)?

pychess-1.0.3

@hartwork
Copy link
Member

Hi! Git master is using ~/.config/pychess for a number of things. Where did you see use of plain ~/?

@axet
Copy link
Author

axet commented Mar 19, 2023

I start fresh pychess-1.0.3 and it starts to pollute my home folder. As turns out in Edit / Preferencies / Save I found checked "Auto save finished game" set and pointing to $HOME.

This is not right way of working with user files in linux. Better to have this path changed to ~/.config/pychess by default.

EDIT: I changed it to the .config.pychess for for some reason path got reset and restored to the $HOME so I have to uncheck "Auto save finished games".

@axet
Copy link
Author

axet commented Mar 19, 2023

Just test it with 'master' same. Fresh (after rm -rf .config/pychess) install result in "Auto save" pointing to the $HOME

@hartwork
Copy link
Member

@axet I understand your message now. I see these files for me, you probably have the first two only:

# ( cd && ls -1 pychess* )
pychess.pgn
pychess.sqlite
pychess_test.pgn
pychess_test.sqlite

For anyone else coming here, the place we are talking about is this:

Screenshot_20230319_174846

@gbtami
Copy link
Member

gbtami commented Mar 19, 2023

I'm not really familiar with Linux file system standards, but you are right and it would be better to provide default to Documents (if it is the standard).

@axet
Copy link
Author

axet commented Mar 19, 2023

No apps create files automatically in $HOME or Documents. Only when manually specified / saved. Default should go into ~/.config or ~/.cache (temporary files). Save or export game history should be offered into Documents.

@hartwork
Copy link
Member

I disagree about some details here (..), but point taken that ${HOME} is not an ideal choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants