openmolecules.org

 
Home » DataWarrior » Installation Issues » Switch off search for automatic updates (Looking for methods to control automatic updates)
Re: Switch off search for automatic updates [message #806 is a reply to message #805] Fri, 06 March 2020 18:15 Go to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
Hi Graham,

DataWarrior uses the Java Preferences API rather than using its own mechanism and file to store preferences. On the Macintosh the Preferences API seems to write key/value pairs into a file called ~/Library/Preferences/com.apple.java.util.prefs.plist, which in my case also contains preferences from other Java applications, e.g. IntelliJ. Since that file is a binary file, I suggest not to interfere directly. You may, however, use a small Java program to switch off the update check using something like the following (untested) code:

import java.util.prefs.Preferences;

public class UpdateCheckOff {
public static void main(String params) {
Preferences.userRoot().node("org.openmolecules.datawarrior").putBoolean( "automatic_update_check ", false);
}
}

If you put this code into a file called 'UpdateCheckOff.java' compile it with 'javac UpdateCheckOff.java' and run the created class file on every client with 'java UpdateCheckOff.class', this should make it. This needs a JRE on the client machine. With a more complicated process you could probably also create an App, which uses the liberica JRE that is installed as part of DataWarrior.

Hope this helps,

Thomas

[Updated on: Fri, 06 March 2020 18:15]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Mac OSX Catalina
Next Topic: Linux Install 5.2.1
Goto Forum:
  


Current Time: Fri Nov 22 04:31:52 CET 2024

Total time taken to generate the page: 0.03625 seconds