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

Linux filepaths do not comply with the XDG Base Directory Specification #3142

Open
jamescrake-merani opened this issue Nov 1, 2024 · 0 comments

Comments

@jamescrake-merani
Copy link
Contributor

Describe the bug
This was raised during the review of the Flatpak. Right now, we are storing all of the configuration files, and compiled models that SasView generates in a directory that lives directly on the home directory. This does not comply with the XDG Base Directory Specification (a kind of standard for Linux desktop applications).

Configuration files should be placed under ~/.config/sasview, and user specific data should be stored in ~/.local/share/sasview. The latter should also included the sasview.log file which should not be on the home directory. The idea of this is to not pollute the user's home directory.

This is a low priority issue as it should hopefully not block the Flatpak from being published. In fact, many popular applications break this rule as well. But it is probably a change we'll want to make in the future to promote better practices.

If a fix were to be implemented, there is an issue of older installations using the old directories, and then these being missed by newer installations. To get around this, I would suggest having a precedence system where we check one location first before checking another directory. This is a common approach taken by many other Linux applications.

SasView version:

  • Version: 6.0.0

Operating system:

  • OS: Any Linux distribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant