Discussion:
[Opera-Linux] Disable check for updates in Opera
Serdar Dalgic
14 years ago
Permalink
Hi,

I'm packaging Opera for my Linux distribution Pardus.

For one of our releases (corporate2) updates will not be so frequently,
thus, I need to disable the check for new versions.

While packaging, how can I disable Opera to not to check for a newer
version?

Thanks for your help.
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
Eir Nym
14 years ago
Permalink
Post by Serdar Dalgic
Hi,
I'm packaging Opera for my Linux distribution Pardus.
For one of our releases (corporate2) updates will not be so frequently,
thus, I need to disable the check for new versions.
While packaging, how can I disable Opera to not to check for a newer
version?
Thanks for your help.
You can checkout opera:config page and corresponding operaprefs.ini settings
Post by Serdar Dalgic
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
--
Opera-Linux: https://list.opera.com/mailman/listinfo/opera-linux
More lists: https://list.opera.com/mailman/listinfo/
Serdar Dalgic
14 years ago
Permalink
Post by Eir Nym
Post by Serdar Dalgic
Hi,
I'm packaging Opera for my Linux distribution Pardus.
For one of our releases (corporate2) updates will not be so frequently,
thus, I need to disable the check for new versions.
While packaging, how can I disable Opera to not to check for a newer
version?
Thanks for your help.
You can checkout opera:config page and corresponding operaprefs.ini settings
You mean opera:config#UserPrefs|DisableOperaPackageAutoUpdate , right?

But what I really want is disabling "the check for newer versions of Opera"
functionality by default for all packages. So is there a way to disable this
while creating the package with "./install --prefix /usr --force --repackage
D" ? Or where should I patch the source before packaging the software?

Thanks for your help.
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
Eir Nym
14 years ago
Permalink
...
Please, refer for http://www.opera.com/support/usingopera/operaini/
This is the best way to manage this.
Also you should note, that Linux and FreeBSD Opera only want to check
for update if it had been installed system-wide. So you have to
disable checking in system configuration file with simple
post-install patch.

Don't forget about security updates!
Post by Serdar Dalgic
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
--
Opera-Linux: https://list.opera.com/mailman/listinfo/opera-linux
More lists: https://list.opera.com/mailman/listinfo/
Serdar Dalgic
14 years ago
Permalink
...
Any idea on where this "system configuration file" can be?

I've looked at the linux tar.gz file and couldn't manage to figure out which
file produces this "operaprefs.ini" file under ~/.opera directory.

There are such parts in share/opera/ui/dialog.ini file

[Auto Update Available Dialog]
....
[Auto Update Check Dialog]
....

etc. can these be related to what I'm looking for?

So any idea which file should I change to disable auto-update systemwide?

I've neither found anything on
http://www.opera.com/support/mastering/sysadmin/ this article too :/
Post by Serdar Dalgic
Don't forget about security updates!
I'm closely tracking any updates for my distro, Pardus. Don't worry, and
thanks for your concern :)
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
Ruarí Ødegaard
14 years ago
Permalink
Post by Serdar Dalgic
Any idea on where this "system configuration file" can be?
As per the man page. There are two system wide configuration files:

/etc/operaprefs_default.ini
Default settings for Opera configurations; may be overridden by the
operaprefs.ini in a user's personal configuration directory.

/etc/operaprefs_fixed.ini
System settings for Opera configurations; cannot be overridden by users.

However if you are packaging your own version of Opera for a distro I
personally would not make the change there but instead do it via a custom
directory included in the package itself. This is how Opera Composer on
Windows and Mac works.

I briefly explain the process here:

http://my.opera.com/community/forums/findpost.pl?id=9124692
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Ruarí Ødegaard
14 years ago
Permalink
...
The best way to work out how to write the system wide files (or the
operaprefs.ini within a custom directory) is to start Opera with a clean
profile (e.g. opera -pd /tmp/opera_test_profile ). Make the one change you
want to make. Shut down Opera and inspect it's operaprefs.ini (e.g.
/tmp/opera_test_profile/operaprefs.ini ). Then you can copy the setting to
your other files and check they are applied.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Serdar Dalgic
14 years ago
Permalink
...
Dear Ruarí;
Post by Ruarí Ødegaard
The best way to work out how to write the system wide files (or the
operaprefs.ini within a custom directory) is to start Opera with a clean
profile (e.g. opera -pd /tmp/opera_test_profile ). Make the one change you
want to make. Shut down Opera and inspect it's operaprefs.ini (e.g.
/tmp/opera_test_profile/**operaprefs.ini ). Then you can copy the setting
to your other files and check they are applied.
Thanks for your information. I've done just as you did, and added a
/etc/operaprefs_default.ini file to the package. Silly of me to skip looking
at the man page (I even didn't know there was a man page for opera :) )

Things seem to be OK for now. I've checked and the following config exists
and being applied to Opera usage.

[User Prefs]
Level Of Update Automation=0
--
- Serdar Dalgic
TUBITAK/UEKAE - Pardus GNU/Linux
http://www.pardus.org.tr/eng
Ruarí Ødegaard
14 years ago
Permalink
Post by Serdar Dalgic
So any idea which file should I change to disable auto-update systemwide?
I just realised I never answered this part.

The pref is opera:config#UserPrefs|LevelOfUpdateAutomation which would be
set to 0 to disable auto update checking.

So you could put the following either in /etc/operaprefs_default.ini or
(if you wanted to use the custom settings as per my previous email) in
/usr/share/opera/custom/defaults/operaprefs.ini.

[User Prefs]
Level Of Update Automation=0
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Continue reading on narkive:
Loading...