How does wxWC/XUL know about this? Is it simply using the same core functionality as FF to find plugin DLLs? The example code in the docs simply tries to find FF's plugin dir:
- Code: Select all
// Locate some common paths and initialize the control with
// the plugin paths; add these common plugin directories to
// MOZ_PLUGIN_PATH
wxString program_files_dir;
::wxGetEnv(wxT("ProgramFiles"), &program_files_dir);
if (program_files_dir.Length() == 0 || program_files_dir.Last() != '\\')
program_files_dir += wxT("\\");
wxString dir = program_files_dir;
dir += wxT("Mozilla Firefox\\plugins");
wxWebControl::AddPluginPath(dir);
but that's not how FF works on MSW; plugins can be installed anywhere on the system and are located through the Windows registry.
I guess the real question is about Flash, as the only plugin I need. What happens if I use wxWC on a PC which doesn't have FF/Chrome, but does have Flash for IE... I guess I need to install it for FF but how, when FF itself isn't installed?
Or can I simply bundle a Flash DLL in my download... which seems crude?