Page 1 of 1

Custom dictionary is created in current directory

PostPosted: Thu Jan 18, 2018 10:38 am
by emerick
When I add a word to the custom dictionary in my app, CEF creates the dictionary file ("Custom Dictionary.txt") in the same directory where my executable lives. This causes problems, because in user installations that directory isn't typically writable. I was expecting the dictionary to follow the same guidelines specified for the user_data_path setting (i.e., use user_data_path if set, or use "Local Settings\Application Data\CEF\User Data" if not set). Am I misunderstanding how this works or does it sound like a bug?

Re: Custom dictionary is created in current directory

PostPosted: Wed Jan 24, 2018 4:38 pm
by Czarek
I also noticed this. Looks like a bug.

Related code sources in Chromium and CEF:
1. https://cs.chromium.org/chromium/src/ch ... e.cc?l=109
2. https://github.com/chromiumembedded/cef ... l.cc#L1061
3. https://github.com/chromiumembedded/cef ... _context.h

Looks like CEF needs to pass a special type of BrowserContext in 2) in which GetPath() method will return user data directory.

Re: Custom dictionary is created in current directory

PostPosted: Thu Feb 01, 2018 10:08 pm
by magreenblatt
Please add a bug for this.

Re: Custom dictionary is created in current directory

PostPosted: Fri Feb 02, 2018 9:00 am
by emerick

Re: Custom dictionary is created in current directory

PostPosted: Wed May 12, 2021 11:51 am
by robinm2
Is there any plan to fix this?