Firefox on Ubuntu 14.04 just updated to v 47, and it broke some of the stuff I was working on. That is however no biggie, I thought, because I can just download the previous version, and work with it, I thought. So, I do something like this:
wget https://ftp.mozilla.org/pub/firefox/releases/46.0.1/linux-i686/en-US/firefox-46.0.1.tar.bz2
tar xjvf firefox-46.0.1.tar.bz2
mv firefox firefox-46.0.1
./firefox-46.0.1/firefox # to run
So far so good, but unfortunately, as soon as I click Alt / Help / About Firefox, the damn thing starts updating:
... and it doesn't even ask me, which I find extremely disrespectful.
The problem here is that at startup, even this version uses the "Default User" profile that my normal system Firefox uses. Now I could set up a separate profile folder just for this Firefox, but then I have to manage more things - which I don't find worth the effort, since all I want to do anyways, is just to stop the updates.
So, I looked up a bit:
You can set these prefs in about:config to disable automatic updating:
app.update.auto - false
app.update.enabled - false
app.update.silent - false
....
You can create a new file in a text editor ... called user.js ... Place this file in your Profile Folder.
// turn off application updates:
user_pref("app.update.enabled", false);
This would be OK, if I wanted to use a separate Profile directory, but as I said, I don't (and I don't want to mess with my "Default User" profile either). Then I found this:
<firefox_installation_dir>/defaults/profile
Ok, so this is something outside of a Profile folder, and in the application directory, this I could use, but does it still work? Currently I have this:
$ find firefox-46.0.1/ -name '*.js'
firefox-46.0.1/defaults/pref/channel-prefs.js
$ cat firefox-46.0.1/defaults/pref/channel-prefs.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
pref("app.update.channel", "release");
Well, I thought, if this file is read, then I can just add the preferences to stop updates here?
$ cat >> firefox-46.0.1/defaults/pref/channel-prefs.js << 'EOF'
> pref("app.update.auto", false);
> pref("app.update.enabled", false);
> pref("app.update.silent", false);
> EOF
Re-run Firefox, as soon as I see Help/About, it starts updating again :(
Tried also adding these to a separate user.js
file in the same directory:
$ cat >> firefox-46.0.1/defaults/pref/user.js << 'EOF'
> pref("app.update.auto", false);
> pref("app.update.enabled", false);
> pref("app.update.silent", false);
> EOF
... but still no dice - again Firefox starts updating immediately once I see Help/About; and even about:config
indicates that these preferences have not changed from their defaults.
So, is there a way to stop the updates of this "extern" version of Firefox on "application" level (i.e. in its application folder), such that is still uses the "Default User" profile otherwise user by the main Firefox version?
Ok, here is a workaround, until a proper answer arrives; the concept is:
firefox
from the application folder, with the "specific" profile created earlier (in 46, bothfirefox
andfirefox-bin
files are binary)user.js
inside with the required preferencesHere is all of that in a
bash
script:Now, whenever I start
firefox46
from the terminal, Firefox 46 starts with the right profile, and does not want to update anymore, which is what I wanted...You can simply delete Updater executable in the firefox folder. No more updates. Ever.