LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2010, 10:03 AM   #1
tothzp
LQ Newbie
 
Registered: Apr 2006
Posts: 26

Rep: Reputation: 17
Question Coexistence of old and new java plugins under $HOME


Hi,

I'm using the plugin directory for mozilla browsers under $HOME/.mozilla/plugins so that it remains when upgrading the browsers.

The Java plugins for Firefox have recently changed, so e.g. Firefox 3.6 expects libnpjp2.so which is -> .../jdk/jre/lib/i386/libnpjp2.so, while the old ones (including Seamonkey 1.x) needs the old libjavaplugin_oji.so that is -> .../jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so.

(I still need the old Seamonkey because there are some Java based apps that just fail to work with FF3.x)

This is however problematic, as if I have both java plugin links there when I start Seamonkey, it will get confused and fails to start the old java plugin.
My workaround is quite dirty: remove the new plugin link, then start Seamonkey 1.x, then put back the new plugin link and start FF 3.6.
Then they will see different Java plugins.

Is there a way for Seamonkey 1.x and FF 3.6 (...and then Seamonkey 2 too) to use different plugin directory under $HOME ?
 
Old 02-18-2010, 10:28 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It sounds like the cleanest approach would be:

1. Create *two* plugin directories: one for Seamonkey, the other for FireFox 3 (and all new stuff you acquire).

2. Use your existing "$HOME/.mozilla/plugins", your existing "start program" method and your default Java JRE for Firefox.

3. Create a new shell script to start SeaMonkey.

Modify the script so that it uses your "Seamonkey" plugin directory, your old "Seamonkey" JRE and any other environment variables you need to customize.

4 Change your "start" method (for example, your desktop icon) to call your new script, instead of starting SeaMonkey directly.

'Hope that helps .. PSM
 
Old 02-18-2010, 11:05 AM   #3
tothzp
LQ Newbie
 
Registered: Apr 2006
Posts: 26

Original Poster
Rep: Reputation: 17
Exactly, that would be a nice solution.

So my question boils down to how to do 3. above, i.e. "Modify the script so that it uses your "Seamonkey" plugin directory, your old "Seamonkey" JRE and any other environment variables you need to customize".
 
Old 02-18-2010, 05:50 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, again -

Google "Linux Seamonkey custom plugin folder" (for example) turns up this:

http://kb.mozillazine.org/Profile_folder_-_SeaMonkey

Again, I want to emphasize:

1. Java is probably NOT your problem

2. The key issue is how to override your SeaMonkey defaults

3. I honestly believe it's as easy as wrapping how you "invoke" Seamonkey into a small shell script (a script which overrides a few key environment variables), then "invoking" Seamonkey via the script (instead of directly).

The exact mechanics are something you're probably going to have to experiment with yourself (trial and error).

'Hope that helps .. PSM

PS:
Please post back what you find!

Last edited by paulsm4; 02-18-2010 at 05:53 PM.
 
Old 02-19-2010, 08:29 AM   #5
tothzp
LQ Newbie
 
Registered: Apr 2006
Posts: 26

Original Poster
Rep: Reputation: 17
No luck. The plugin directory under the profile directory is not scanned.
The KB page only mentions pluginreg.dat but that's not what I need because that is rewritten I think when a new plugin is found.

So the current workaround was to install the new java plugin for FF3.6 under the FF install dir while keeping the old one for Seamonkey under ~/.mozilla/plugins.
But thanks for the help anyhow.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Symfony Plugins Have a New Home LXer Syndicated Linux News 0 08-01-2008 02:00 AM
Java plugins Trio3b Mandriva 5 09-13-2005 01:25 AM
need help installing java plugins usernameddr Mandriva 3 01-30-2005 01:09 AM
Installing Java plugins NomadABC Linux - Software 2 12-30-2004 02:01 PM
Problems with Java plugins GhostOfYoda Linux - Newbie 3 08-08-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration