Closed Bug 110660 Opened 23 years ago Closed 23 years ago

MOZ_PLUGIN_PATH not added to plugins search paths

Categories

(Core :: XPCOM, defect)

Other
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: ccarlen, Assigned: ccarlen)

Details

Attachments

(1 file, 2 obsolete files)

This came from bug 77231.

Working on 2 patches because there are two ways to go about it:

1) for NS_APP_PLUGINS_DIR, use MOZ_PLUGIN_PATH if defined, else use bin/plugins.
That's what used to happen.
2) for NS_APP_PLUGINS_DIR_LIST, add MOZ_PLUGIN_PATH if defined *and*
bin/plugins. Then we could have both - bin/plugins for standard plugins
installed with app and MOZ_PLUGIN_PATH for user added extras.

Unix people can decide which they want.
Attached patch patch for option #1 (obsolete) — Splinter Review
This patch is for option #1 which is the old behavior.
Attached patch patch for option #2 (obsolete) — Splinter Review
This allows us to have both dirs in the search path.
dmose, blizzard - can you take your pick of which patch and r/sr=? 
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
If probably wouldn't hurt (and maybe even be helpful) if the environment
variable was XP?
True. It would work probably everywhere but Mac.
  Now I think the env var should just be Unix. I don't really like the idea of
having it in the first place but, since people have been using it on Unix, it
needs to be maintained.
  Is the reason that it exists is so that people without admin privleges could
install plugins in some directory of theirs and set the var to point to it? I
think a better approach is to do what's done on OS X: scan the "Internet
Plugins" dir in the user domain, followed by the "Internet Plugins" dir in the
global domain. Of course, OS X provides these dirs and a way to find them. On
other OSs, we'd have to do it by hand.
  Sound right? In the meanwhile, I think we should go with option #2 patch as-is.
Comment on attachment 58286 [details] [diff] [review]
patch for option #2

yes, it's the only way users can override admin plugins right now. Since not
every platform has an OS global user location for plugins, maybe we should have
mozilla profile-based plugins? Anyway, I still think an environment varible for
multi-user NT system could be useful and maybe even later in Mach-O. r=peterl
Attachment #58286 - Flags: review+
Same thing as attachment 58286 [details] [diff] [review] except the env var is used everywhere except
Mac.
Attachment #58279 - Attachment is obsolete: true
Attachment #58286 - Attachment is obsolete: true
Peter - can you give a fresh r= on new patch?
jband - can you sr?
Comment on attachment 58575 [details] [diff] [review]
new patch for option #2

r=peterl
Attachment #58575 - Flags: review+
Comment on attachment 58575 [details] [diff] [review]
new patch for option #2

sr=jband.
I think I'm OK with the enumerator change. You do penalize anyone who makes the
mistake of just calling GetNext until it fails. We know this is not the right
thing to do, but it would work in most implementations, but not here.
Attachment #58575 - Flags: superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Shrirang - can you verify this one so I can get it on 0.9.4 with bug 77231?
Along with this, bug 77231 should be verifiable on Unix now too.
marking verif, confirmed with several people(devp/ moz qa) that this works too.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: