HOW TO - Firefox search plugins on user profiles
The problem
Firefox does not store plugins on the user profile folder, but on a central location. Any plugins you install will be also available on other users accounts. This may or may not be what you want. For example I have many plugins like sourceforge, gentoo-forums, gentoo-wiki etc etc that my girlfriend does not use. She uses plugins I don't want, like yellow pages, ask-jeeves etc. So the search plugins drop down list, ends up cluttered.
The sollution
Create a searchplugins folder in the firefox profile folder for each user. Next, copy the search plugins to the newly created folders, and assign ownership of the folder and plugins to each user. Then delete the original searchplugins folder.
eg. if you have 4 users: joe, sixpack, leet, guest
Code: Select all
root@localhost~# for iter in joe sixpack leet guest; do
> mkdir /home/$iter/.mozilla/firefox/searchplugins
> cp /usr/lib/mozilla-firefox/searchplugins/* /home/$iter/.mozilla/firefox/searchplugins
> chown -R $iter:users /home/$iter/.mozilla/firefox/searchplugins
> done
root@localhost~# \rm -R /usr/lib/mozilla-firefox/searchpluginsIf you 're using GDM:
Code: Select all
root@localhost~# echo "[ -d ~/.mozilla/firefox/searchplugins ] && /bin/ln -sfn ~/.mozilla/firefox/searchplugins /usr/lib/mozilla-firefox/searchplugins" >> /etc/X11/gdm/PostLogin/DefaultThat's it. Now logout and log back in. Firefox is now using your own searchplugins folder.
Go to /home/yourusername/.mozilla/firefox/searchplugins and delete any plugins you don't want. You can safely do this as it won't affect other users.
Start firefox and install new plugins. They will be installed on your profile only.
Please note:
1. If there's more than 1 users logging in at the same time (eg. if you're using LTSP or remote X etc) the symlink will be updated to the last user logged in. So if the 1st user starts firefox, he won't see any search plugins. In this case, better start firefox with a script that updates the symlink and then starts firefox.
2. If you emerged firefox-bin the path to firefox and searchplugins will be different. Probably under /opt.
Enjoy



