How to disable version check on startup?

I seethis option in VersionChecker.java . I’m guessing I can set some config file option for this?

Thanks,
Simon

Yes, this is possible. Please have a look at this post.

The property can also be set in <USER_DIR>\.snap\etc\snap.properties. Then it is a user setting and not for the installation. In this file the configuration is stored if you make the change in the GUI.

I have this, but when I launch the GUI, I still see the plugin installer box. Is it supposed to disappear?

$ more ~/.snap/etc/snap.properties
snap.versionCheck.interval=NEVER

$ more ~/.snap/etc/snap.conf
default_options="-J-Dplugin.manager.check.interval=NEVER"

I tried the same changes in the snap.conf and snap.properties files in the installation root, but the dialog box still appears.

BTW, can either of these values be passed on the command line?

1 Like

You mean you still see this dialog, right?
image

To get rid of this dialog another property is necessary.
The one which is set by the checkbox.

Try adding

optional.version.check.onstartup.decision=no

to the snap.properties.

it should be possible to specify these properties also on the command line. Like this.

-Doptional.version.check.onstartup.decision=no
-Dsnap.versionCheck.interval=NEVER
-J-Dplugin.manager.check.interval=NEVER

But while looking at this I noticed this part of the code needs some attention.
It doesn’t work in all cases as it should. So maybe I can update it for the next release.

I’ve created an issue for this: SNAP-1338

1 Like

Actually the property
optional.version.check.onstartup.decision=no

needs to be added to

<USER_DIR>\AppData\Roaming\SNAP\config\Preferences\org\esa\snap\snap\rcp.properties

on Windows. On Linux this file is located at

<USER_DIR>\.snap\config\Preferences\org\esa\snap\snap\rcp.properties

if I remember correctly.

Sorry, this is a bit messy. Several requirements had to be considered here and it got bit confusing.

6 Likes