-
Notifications
You must be signed in to change notification settings - Fork 317
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
[runSofa,Helper] Changes screenshots and config directories location #5096
base: master
Are you sure you want to change the base?
[runSofa,Helper] Changes screenshots and config directories location #5096
Conversation
This links with #4926 from @fredroy, @damienmarchal any thoughts ? |
Thank for the PR. On Linux: On Windows: On MacOS: |
I'm okay with all your suggestions. If I had to choose, I'll go for: On Linux: On Windows: On MacOS: |
Having it in a hidden directory is better in my opinion: for the three other platform, it is kind of hidden by the fact that it is in folders dedicated for such files. Here in linux we are polluting the home of the user. I would then advocate for the use of hidden folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add tests for getUserHomeDirectory
and getSofaDataDirectory
in Sofa/framework/Helper/test/Utils_test.cpp
?
Default folder could be the first one proposed by Eulalie. Config path on MacOS seems undefined (some in App some others in .config). Although the config folder is OS dependent and quite straightforward, we need to be able to modify the screenshot folder -> configuration of this path in the GUI. |
Use of FileSystem::append Co-authored-by: Alex Bilger <[email protected]>
Hey @EulalieCoevoet We finally did not have time to take over for the release. Your default proposal suits us. The only things to be added would be:
This could be done in a separate PR. Would you be open doing it @EulalieCoevoet ? |
TODO : Add tests to check if directories given by |
Can we run the CI to check the tests? |
[ci-build][with-all-tests] |
For the test of getUserHomeDirectory() on Windows. |
The directories
screenshots
andconfig
are currently created in thebuild
directory of SOFA. When installing the software on a machine, those can end up in a read-only directory.To avoid this problem, this PR changes:
On Linux:
screenshots
location to:~/SOFAData/screenshots/
config
location to:~/.config/SOFA/config/
On Windows:
screenshots
location to:~/SOFAData/screenshots/
config
location to:~/AppData/Local/.config/SOFA/config/
On MacOS:
screenshots
location to:~/Library/Application Support/SOFAData/screenshots/
config
location to:~/Library/Application Support/.config/SOFA/config/
These changes have only been tested on Linux. I'm not familiar with MacOS so I don't know what would be the best location.
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if