From Gnash Project Wiki

Jump to: navigation, search

How to use gnash NPAPI plugin

The only thing needed for using the NPAPI gnash plugin is the shared object put somewhere which is recognizable by the browser.

Typically, all mozilla-based browsers will scan the $HOME/.mozilla/plugins directory, which is where gnash installs the plugin if not requested to do differently using the --with-plugindir configure switch.

You can set an environment variable to change the set of dirs scanned for plugins by mozilla-based browsers, like the following:

MOZ_PLUGIN_PATH=/usr/src/gnash-xx/plugin/npapi/.libs/ firefox

Another environment variable may be used to specify the path to the standalone gnash to be invoked by the plugin wrapper:

GNASH_PLAYER=/usr/src/gnash-xxx/bin/gtk-gnash firefox # or whatever your browser is.

Yet another useful env variable is:


It will drop files named /tmp/ as the plugin executes the standalone player. You can run those files to get a standalone run, adding any additional flag you may want (-v for example).

Putting it all togheter, an example commaline from the top of your build tree might be:

MOZ_PLUGIN_PATH=${PWD}/plugin/npapi/.libs \
GNASH_PLAYER=${PWD}/gui/gtk-gnash \
GNASH_OPTIONS=writelauncher firefox