alderlopez / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

PathService not implemented on Linux #493

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch cef application from a host process not located side by side with the 
libcef.so

What is the expected output? What do you see instead?
The application should run.
The application crashes when loading chrome.pak and locales.

What version of the product are you using? On what operating system?
Ubuntu 11.10 Oneiric Ocelot 32bit - compiled cef from r365 source

Please provide any additional information below.

Due to the missing PathService implementation for Linux the location of the 
executable host prcoess file is chosen as default. If run from a python, lua or 
mono application this path is usually "/usr/bin", therefor loading the 
chrome.pak file fails and cef crashes.
Since usually the executable and the libcef.so lib reside in the same directory 
the current "fallback" does not impede the cefclient example or similar 
scenarios.

Original issue reported on code.google.com by krasshir...@googlemail.com on 29 Jan 2012 at 4:15

GoogleCodeExporter commented 9 years ago
Does PathService::Override work? For example:

FilePath pak_dir;
PathService::Get(base::DIR_MODULE, &pak_dir);

FilePath pak_file = pak_dir.Append(FILE_PATH_LITERAL("chrome.pak"));
PathService::Override(ui::FILE_RESOURCES_PAK, pak_file);

Original comment by magreenb...@gmail.com on 7 Feb 2012 at 6:11

GoogleCodeExporter commented 9 years ago
This may be fixed as part of issue #236.

Original comment by magreenb...@gmail.com on 7 Feb 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Already fixed this using a custom path service.
See. http://code.google.com/p/chromiumembedded/issues/detail?id=236
Obviously I'll stop working on this for now until CEF3 hits the shelf's ;)

Original comment by krasshir...@googlemail.com on 7 Feb 2012 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 7 Feb 2012 at 8:18