Another way to disable automatic updates uses Terminal in MacOS. But many people will find the process difficult compared to just unchecking the option as explained above. Download this file:
- NoUpdates.txt
- MacOS script to disable automatic updates
- (535 Bytes) Downloaded 112 times
If OpenOffice is running, use OpenOffice → Quit. In Finder, use Go → Applications, then open the Utilities folder. Launch Terminal.app and issue these three commands:
cd ~/Downloads
chmod +x NoUpdates.txt
./NoUpdates.txt
Then use Terminal → Quit. The original file is saved as
registrymodifications.aoo. When NoUpdates.txt changes the setting it displays:
Property in file /Users/Guest/Library/Application Support/OpenOffice/4/user/registrymodifications.xcu:
Before= <prop oor:name="AutoCheckEnabled" oor:op="fuse" oor:type="xs:boolean"><value>true</value></prop>
After= <prop oor:name="AutoCheckEnabled" oor:op="fuse" oor:type="xs:boolean"><value>false</value></prop>
schlanske wrote: ↑Tue Sep 06, 2022 3:09 pm
Thanks for pointing out why my AOO stopped working.
If you receive message
Xpath set is empty this means that automatic updates are not enabled because OpenOffice has not created the parts of the profile which control automatic updates.
Thus the automatic updates feature would not be the cause of your crash. The script doesn't make any changes to the profile in this situation because it can't find the property it wants to change. The automatic updates profile proprties won't have been created if all you've done is use the
Welcome to OpenOffice dialog. I don't know when those profile properties are created. But you can use the simple method explained in the previous post in that situation.
This is the content of the NoUpdates.txt file above:
#!/bin/bash
p='<prop oor:name="AutoCheckEnabled" oor:op="fuse" oor:type="xs:boolean"><value>'
q='true</value></prop>'
x="/ooritems/item/prop[@oorname='AutoCheckEnabled']"
rm=~/"Library/Application Support/OpenOffice/4/user/registrymodifications.xcu"
echo "Property in file $rm:"
echo "Before= $(sed 's/oor:/oor/g' "$rm" | xmllint --xpath "$x" - | sed 's/oor/&:/g')"
cp "$rm" "${rm%xcu}aoo"
sed "s_$p${q}_$p${q/#true/false}_" "${rm%xcu}aoo" >"$rm"
echo "After= $(sed 's/oor:/oor/g' "$rm" | xmllint --xpath "$x" - | sed 's/oor/&:/g')"
What does the script do? The first line tells MacOS this is a script written in a language called
bash. The next four lines set some variables which indicate what needs to be changed and where it is. The
echo lines display the current value of the
AutoCheckEnabled property. The
cp line makes a backup copy of the file. The
sed line changes the property from true to false. The last line displays the updated value of the
AutoCheckEnabled property.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).