WebGadgetPath()

Syntax

Result = WebGadgetPath(LibraryFile$ [, MozillaPath$])
Description
Specifies the path to the library for the Gtk Mozilla Embedding Widget which is used by the WebGadget() on Linux. This command does not exist on other platforms.

LibraryFile$ specifies the full path (including filename) to the mozilla embedding library. If the argument is empty, a library called "libgtkembedmoz.so" will be searched in the following locations:
- All directories listed in the LD_LIBRARY_PATH environment variable.
- All libraries listed in /etc/ld.so.cache.
- /lib, followed by /usr/lib

MozillaPath$ specifies the path where the mozilla components are located (usually the path where the mozilla or firefox browser is installed). This argument is not needed if the libgtkembedmoz.so is located in the same directory as the mozilla components. Note that if this path is wrong, the WebGadget() will actually be created correctly, but it cannot load any pages.

If the libgtkembedmoz.so is located in the same directory as the mozilla components, and is found in one of the above mentioned search locations, this command is not needed at all.

Return value

Returns 1 if the library could be loaded, 0 otherwise. Note that it cannot be verified if the MozillaPath$ was correct or not.

Supported OS

Linux

<- WebGadget() - Gadget Index