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

Add UserStorage conf option, update documentation on storage paths #65

Merged
merged 10 commits into from Apr 11, 2024

Conversation

LaakkonenJussi
Copy link
Contributor

Set the UserStorage path as configuration option read from configuration files by both connmand and connman-vpnd instead of having it as a build time parameter. StorageRoot can be set in the configuration files as well, so it is same to have this one there too. These paths need to be in sync on both, though.

Fixed many unit tests that depended on this as the UserStorage is used now at storage.c initialization.

Updated the documentation on that part as well to define that the default paths can be modified through configuration files.

[storage] Set user storage path at init. JB#61888

Change to set user storage path at storage initialization. Require both
storage root and user dir at initialization. Use the user storage dir
instead of build time default.
[main] Add support for UserStorage path configuration. JB#61888

Read "UserStorage" from the configuration file and use it for storage
initialization as path for user specific data when multiuser is enabled.
Use the default build time path for both storage root and user storage
when omitted from configuration file.
[vpn-settings] Add support for UserStorage path configuration. JB#61888

Read "UserStorage" from the configuration file. Use the default build
time path for both storage root and user storage when omitted from
configuration file.
[vpn] Use user storage dir for storage init. JB#61888
[doc] Update config file storage paths descriptions. JB#61888

Change the description to detail the default build time set values for
both StorageRoot and UserStorage paths. Change the default UserStorage
to be ".config" in Makefile.am. The paths are read from configuration
files on both connman and connman-vpn.
@LaakkonenJussi LaakkonenJussi merged commit f1e3bef into sailfishos:master Apr 11, 2024
@LaakkonenJussi LaakkonenJussi deleted the jb61888 branch April 11, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants