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

"blob_storage/" and "webrtc_event_logs/" directories are created in current working directory when using in-memory cache #432

Open
cztomczak opened this issue May 25, 2018 · 3 comments
Milestone

Comments

@cztomczak
Copy link
Owner

cztomczak commented May 25, 2018

This issue doesn't occur if you set ApplicationSettings.cache_path option.

Upstream CEF issue:
https://bitbucket.org/chromiumembedded/cef/issues/2289/cefclient-creates-permanent-cache

The "GPUCache/" directory may be fixed by adding a command line switch --disable-gpu-shader-disk-cache, Issue #419 is to fix that.

@cztomczak cztomczak added this to the v66 milestone May 25, 2018
@cztomczak cztomczak changed the title "blob_storage/", "GPUCache/" and "webrtc_event_logs/" directories are created in current working directory "blob_storage/" and "webrtc_event_logs/" directories are created in current working directory Jul 31, 2018
cztomczak added a commit that referenced this issue Aug 22, 2018
do not include trash directories. See Issue #432.
@cztomczak cztomczak changed the title "blob_storage/" and "webrtc_event_logs/" directories are created in current working directory "blob_storage/" and "webrtc_event_logs/" directories are created in current working directory when using in-memory cache Aug 24, 2018
@MordicusEtCubitus
Copy link

This is very nasty, I've got a lot of these repositories everywhere on my disk, and they have root owner
I don't understand how they are created as I use a few brave and chromium.

Maybe this is not the right place to post for this but if you can explain how to prevent from this I'll be very pleased.

Thanks a lot !

@dfb
Copy link

dfb commented Nov 14, 2019

Maybe this is not the right place to post for this but if you can explain how to prevent from this I'll be very pleased.

The ticket mentions that the problem doesn't happen if cache_path is set, so we're dealing with the problem by doing this:

import tempfile
settings = {'cache_path': tempfile.gettempdir(), ...}
cef.Initialize(settings=settings)

On Windows this will mean those directories will get created in ~/AppData/Local/Temp - so it won't prevent them from getting created, but they'll stay out of your working directory at least.

@Boris-code
Copy link

import tempfile
settings = {'cache_path': tempfile.gettempdir(), ...}
cef.Initialize(settings=settings)

how to import cef?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants