Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12506 - firefox 3.0 wont find the flash plugin.

Attached to Project: Arch Linux
Opened by Campbell Barton (ideasman42) - Friday, 19 December 2008, 16:19 GMT
Last edited by Jan de Groot (JGC) - Sunday, 21 December 2008, 16:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
installing adobe flash doesnt work with arch firefox-3.0 because it does not look in /usr/lib/mozilla/plugins/
Copying the plugins to ~/.mozilla/plugins makes firefox load with the plugins enabled.

Attached strace output

Additional info:
* extra/flashplugin 10.0.15.3-1
* extra/firefox 3.0.4-1
* i686 up to date arch


Steps to reproduce:
* install firefox3 and flash nonfree,
* start flash
* navigate to a site with flash and try to view.
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 21 December 2008, 16:38 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Adding an profile.d script is the only solution. This "bug" affects all applications that can embed firefox plugins, it's a no-go to add a launcher script to every application.
Comment by Pierre Schmitz (Pierre) - Friday, 19 December 2008, 16:34 GMT
Works fine here. Move your ~/.mozilla folder and try to reproduce this.
Comment by Alessandro Nakamuta (alessandro_ufms) - Friday, 19 December 2008, 19:41 GMT
The flashplugin works fine to me. Works on Opera and Epiphany too.
Comment by Ionut Biru (wonder) - Friday, 19 December 2008, 19:55 GMT
try to look at permission of the folder /usr/lib/mozilla/plugins/
if you install firefox for the first time and you want to test plugin is a wrong aproach.
you need to relogin to have a valid MOZ_PLUGIN_PATH
Comment by Jan de Groot (JGC) - Saturday, 20 December 2008, 00:45 GMT
Works fine here. As noted, the mozilla-common package includes a scriptlet that sets the MOZ_PLUGIN_PATH. If this is a fresh installation of firefox from inside X, you won't get this variable set until you logout and login again (or when you run firefox from terminal and source the /etc/profile.d/mozilla-common.sh file before running firefox from that terminal).
Comment by Campbell Barton (ideasman42) - Saturday, 20 December 2008, 00:46 GMT
I restarted firefox, and also tried running firefox as root. tested the plugins dir with permissions 755 and 700 (the package wants the dir to be 755 IIRC so I set it to that)
Comment by Campbell Barton (ideasman42) - Saturday, 20 December 2008, 07:01 GMT
mozilla-common is not installed on my system,

From /var/abs/extra/firefox/PKGBUILD
depends=('xulrunner=1.9.0.4' 'desktop-file-utils' 'shared-mime-info')

Should this become a firefox dependancy?

Note, that my arch install is only 1 week old, and I have only installed 10-20 package so far with minimal hand editing of config files.
Comment by Jan de Groot (JGC) - Saturday, 20 December 2008, 09:38 GMT
It's a dependency for xulrunner, so there's no reason this should be a dependency for firefox. This package should be installed on your system, unless you installed something with forced dependencies.
Comment by Alessandro Doro (adoroo) - Saturday, 20 December 2008, 14:19 GMT
Moreover mozilla-common is a dependency of flashplugin.
Comment by Campbell Barton (ideasman42) - Saturday, 20 December 2008, 14:54 GMT
Sorry, found I had "mozilla-common" package installed on my system :/ (still learning pacman)

The problem seems to be /etc/profile.d/mozilla-common.sh is not running

if I type this in a terminal, firefox starts with flash running.

". /etc/profile.d/mozilla-common.sh; firefox"

However opening a terminal (running standard bash), then run firefox, no flash plugin, MOZ_PLUGIN_PATH is not set as an environment variable.
Comment by Alessandro Doro (adoroo) - Saturday, 20 December 2008, 15:04 GMT
How are you launching the X server?
Comment by Campbell Barton (ideasman42) - Saturday, 20 December 2008, 15:14 GMT
with the "xinit" command, my ~/.xinitrc file only contains "exec fluxbox"
Comment by Campbell Barton (ideasman42) - Saturday, 20 December 2008, 15:17 GMT
just tested with "startx -- :1" from my current X session and the MOZ_PLUGIN_PATH env var still isnt set.
Comment by Jan de Groot (JGC) - Saturday, 20 December 2008, 15:34 GMT
Try logging out completely. The /etc/profile.d/mozilla-common.sh script is sourced when you login, not when you run startx.
What shell are you using btw?
Comment by Campbell Barton (ideasman42) - Sunday, 21 December 2008, 14:49 GMT
Jan, your right, have been using the same login for almost 6days now.

There could be a few solutions to this problem.
* give a message once the flash package is installed that the user will need to logout/login - do packages support this?
* add some other way for the plugin path to be set (if there is no plugin env var, set it to /usr/lib/mozilla/plugins for eg)

I guess this is tecnically not a bug, however it is in the sense that you cant install firefox and flash and use them without logging out/in, which is not communicated to the user.
Comment by Campbell Barton (ideasman42) - Sunday, 21 December 2008, 14:59 GMT
using bash
Comment by Alessandro Doro (adoroo) - Sunday, 21 December 2008, 15:02 GMT
In Arch /usr/bin/firefox is a symlink to the firefox binary.
Usually /usr/bin/firefox is (or links to) a script setting up a proper envorinment.

I think that a script is better than a pacman message.

Loading...