Opened 18 years ago

Closed 18 years ago

#1773 closed defect (fixed)

scripts for installing firefox plugins

Reported by: tinglix@… Owned by: Randy McMurchy
Priority: high Milestone: 6.2.0
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

I get an error message while runing the following scripts:

if [ -f /usr/lib/mozilla/plugins/* ]; then

for PLUGIN_FILE in $(ls /usr/lib/mozilla/plugins/*) do

ln -v -s ../../mozilla/plugins/$(basename $PLUGIN_FILE) \

/usr/lib/firefox-1.5/plugins

done

fi

The error message says

bash: [: too many arguments

When I changed the first line to

if [ -d /usr/lib/mozilla/plugins ]; then

It went through.

Change History (4)

comment:1 by bdubbs@…, 18 years ago

Do we want to do this at all? There is a libnullplugin.so in both that conflicts and some plugin entries may already be links. Shouldn't the link be to the original file and not a link to a link?

Rather than a script, perhaps we should just have a sentence that says to examine /usr/lib/mozilla/plugins/ and manually copy/link the desired files to /usr/lib/firefox-1.5/plugins.

We also should consider suggesting a link from /usr/lib/firefox -> firefox-1.5 to help facilitate plugin installation.

comment:2 by Randy McMurchy, 18 years ago

Milestone: future6.2
Owner: changed from blfs-book@… to Randy McMurchy
rep_platform: PCAll

(In reply to comment #1)

Do we want to do this at all? There is a libnullplugin.so in both that conflicts

If there is a conflict, then the link is not created. Note there is no -f on the link command.

and some plugin entries may already be links. Shouldn't the link be to the original file and not a link to a link?

Does it really matter? Note the symlinks in /usr/lib. You'll see many links to other links.

Rather than a script, perhaps we should just have a sentence that says to examine /usr/lib/mozilla/plugins/ and manually copy/link the desired files to /usr/lib/firefox-1.5/plugins.

This may be the best solution. I'm not sure why the script didn't work for the OP, I suspect a typo, but just mentioning it should be enough.

We also should consider suggesting a link from /usr/lib/firefox -> firefox-1.5 to help facilitate plugin installation.

I don't see any benefit in this at all. Perhaps I'm not seeing the obvious, but just don't this as anything but an unnecessary link.

For sure the best thing to do is remove the script and insert some text in its place. I'll wait a few more days to see if there is more input about the firefox -> firefox-1.5 idea.

comment:3 by Randy McMurchy, 18 years ago

Status: newassigned

comment:4 by Randy McMurchy, 18 years ago

Resolution: fixed
Status: assignedclosed

Modified the instructions to create symlinks to the system-wide mozilla plugin directory.

Also modified the sed command so that it can be run multiple times. This issue was discussed on -Support.

Note: See TracTickets for help on using tickets.