| Re: Switch off search for automatic updates [message #806 is a reply to message #805] | 
			Fri, 06 March 2020 18:15   | 
		 
		
			
				
				
				
					
						  
						thomas
						 Messages: 736 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  
 |  
	| 
		
	 | 
 
 
 |