Gnash Tips

From Gnash Project Wiki

Jump to: navigation, search

Contents

How to make Google Chrome use Gnash

After installing chrome, create a /opt/google/chrome/plugins/ directory. Copy libgnashplugin.so from $HOME/.mozilla/plugins or /usr/lib/mozilla/plugins/ to this new directory, and restart Chrome. Gnash works just fine.

How to fix crackly audio with SDL

How to debug GST runs

See GstreamerDebugging

How to use gnash NPAPI plugin

The only thing needed for using the NPAPI gnash plugin is the libgnashplugin.so 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/.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:

GNASH_OPTIONS=writelauncher

It will drop files named /tmp/gnash-debug-#.sh 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).

How to use gnash KPARTS plugin

The things needed to use kparts plugin are:

  1. klash_parts.desktop file in one of the kde service dirs (kde-config --path services)
  2. libklashpart.la file in a dcopserver scanned dir (kde-config --path module)
  3. libklashpart.so file wherever is written inside the .la file above

Note, the klashpartui.rc is not required. Konqueror should still work without it, but will print an error like the following:

konqueror: WARNING: KXMLGUIClient::setXMLFile: cannot find .rc file klashpartui.rc

Questions

  1. How to tell dcopserver (or konqueror) which directory to scan for the klash_parts.desktop and libklashpart.la files ?
  2. Should we have a configure switch in gnash to specify where these directories are ? ('kde-config --install services --expandvars' would tell us where to install the klash_parts.desktop, 'kde-config --install module --expandvars' where to install libklashplugin.{la,so})


References

Personal tools