Page 1 of 1

tmp directories scoped_dir

PostPosted: Thu May 26, 2011 4:03 am
by Steppenwolf
Hi all,
i'm using cef231 revision and have some problems with tmp directories. CEF creates unique tmp dirs named "scoped_dir1234" which are empty.
I have inquired that is has nothing to do with CACHEPATH variable, which ist empty. CEF creates 4 unique tmp dirs after appication start and
sometimes they weren't deleted after closing the application.
Is there any way to disable the creation of this directories?
Thanks in advance.

Thomas

Re: tmp directories scoped_dir

PostPosted: Thu May 26, 2011 9:52 am
by magreenblatt
Hi Thomas,

The "scoped_dir" directories are created by the call to ScopedTempDir::CreateUniqueTempDir() and are used as temporary directories for HTML5 features like database system, file system and application cache. They should be deleted when the application exits cleanly. If the application crashes or is terminated by the debugger then these directories can be left behind.

Regards,
Marshall

Re: tmp directories scoped_dir

PostPosted: Thu Jun 09, 2011 8:50 am
by Steppenwolf
Hi Marshall,
is there any possibility to disable tempdir creation?
A really unsecure hack is to delete all scope_dir manually before shutting down application. I think this could raise some confict, if the user is running chrome browser too.

Thanks in advance
Thomas

Re: tmp directories scoped_dir

PostPosted: Thu Jun 09, 2011 9:00 am
by magreenblatt
Steppenwolf wrote:Hi Marshall,
is there any possibility to disable tempdir creation?
A really unsecure hack is to delete all scope_dir manually before shutting down application. I think this could raise some confict, if the user is running chrome browser too.

Thanks in advance
Thomas

It could be possible to disable the HTML5 features that require a scoped_dir, but it is not possible to support these features as currently designed without creating a scoped_dir.

Re: tmp directories scoped_dir

PostPosted: Wed Jul 13, 2011 4:32 am
by cagret
Even when you disable all html5 features these scoped_dirs are still being created.

I've noticted hundreds of these directories in my TEMP. I have a funcion called ErrorMessage() that terminates the application immadiately using exit() and displays a message box with details about the error, that is probably why these scoped_dirs were not cleaned up.