Friday, April 25, 2014

Flash Player with QtWeb

QtWeb 3.8.5 on Linux uses the following location to load the Flash Player plugin:
/usr/lib64/nsbrowser/plugins/libflashplayer.so
The file should be marked as executable.
Note, according to Qt Project documentation QtWebKit will also search other paths - for details see:
http://qt-project.org/doc/qt-4.8/qtwebkit.html#netscape-plugin-support

Because QtWeb is 32-bit this can conflict with other web browsers installed on 64-bit Linux.  To avoid this issue put the libflashplayer.so file in another location such as:
/usr/local/lib32/qtweb/plugins/libflashplayer.so
Then edit the desktop file to use an Exec line such as:
Exec=env MOZ_PLUGIN_PATH=":/usr/local/lib32/qtweb/plugins" /usr/local/bin/QtWeb
 - this will apply the environment variable only to the process where QtWeb is launched.


To see other files and locations that QtWeb is trying to access you can use strace:
strace -e open QtWeb
or to grep a specific keyword (e.g. plugin):
strace -e open QtWeb 2>&1 grep -i plugin

No comments:

Post a Comment