-
-
Notifications
You must be signed in to change notification settings - Fork 369
fix: set WebKitGTK WebsiteDataManager's base_cache_directory #1547
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
base: dev
Are you sure you want to change the base?
fix: set WebKitGTK WebsiteDataManager's base_cache_directory #1547
Conversation
If that was the case, the `os` property would be re-set with the new value for the cache directory. Also, I mis-swapped `data_directory` and `cache_directory` in `WebContextImpl::new`'s call.
maybe we should just derive the cache dir from the data dir even if not 100% correct? That would match the behavior on Windows at least. |
Co-authored-by: Fabian-Lars <[email protected]>
This reverts commit 74312c0.
This reverts commit 5bfd042.
This reverts commit 29030e1.
cache_directory
to WebContext::new
Package Changes Through 055b954There are 1 changes which include wry with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
let mut context_builder = WebContext::builder(); | ||
if let Some(data_directory) = data_directory { | ||
let data_manager = WebsiteDataManager::builder() | ||
.base_cache_directory(data_directory.to_string_lossy()) |
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.
i can't remember what exactly the cache looks like on windows, do you think it makes sense to create a cache
subdir like we do for the cookies below?
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.
by default webkitgtk put the cache in the same dir as the data, so I don't think it would be wrong to set it that way as well when providing a custom data path
Set
WebsiteDataManagerBuilder::base_cache_directory
with the same path asbase_data_directory
.This change allows the cache directory to be changed instead of using the default one from WebKitGTK.