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

[runSofa,Helper] Changes screenshots and config directories location #5096

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

EulalieCoevoet
Copy link
Contributor

The directories screenshots and config are currently created in the build 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

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

{
CoTaskMemFree(path);
// else system calls are used
homeDir = getpwuid(getuid())->pw_dir;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getpwuid() and getuid() are POSIX system calls so it is not supported with Win32 API

@alxbilger alxbilger added the pr: status to review To notify reviewers to review this pull-request label Nov 8, 2024
@hugtalbot hugtalbot changed the title [main] Changes screenshots and config directories location [runSofa,Helper] Changes screenshots and config directories location Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: status to review To notify reviewers to review this pull-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants