Shipping GNU/Linux Firefox plugin with shared libraries (for installation with no root access)

Posted by Vi on Stack Overflow See other posts from Stack Overflow or by Vi
Published on 2010-06-10T14:37:13Z Indexed on 2010/06/11 20:02 UTC
Read the original article Hit count: 289

The application is a Firefox plugin (loaded from $HOME/.mozilla/plugins), so wrapper script that sets LD_LIBRARY_PATH is not an easy option.

RPATH, as far as I know, cannot refer to $HOME and can be only absolue path.

Firefox tries to dlopen it's plugin from ~/.mozilla/plugins but fails (because it depends on shared libraries installed somewhere in the user home directory).

Modifying Firefox menu item to provide a wrapper (with LD_LIBRARY_PATH) around Firefox is too hacky.

What should installer script do (without root access) to make standard firefox load plug-ins that depends on out shared library?

  1. Should I just try to make embed everything into that .so to remove dependencies?
  2. Should I try to make installer script to finish linking or patch RPATH during the installation phase?

© Stack Overflow or respective owner

Related posts about linux

Related posts about firefox