[Solved] Location of config file
[Solved] Location of config file
Hello , i am trying to start OpenOffice in listening-Mode. Starting by "soffice -accept=socket,host=0,port=2002;urp;" works fine, netstat shows a listening port on 2002. But i cant locate the config file to always start in listening mode. Developer Guides says the file is <OfficePath>/share/registry/data/org/openoffice/Setup.xcu, but that one does not exist. can anyone give me a hint? Am using a Mac Book Air M1 with Mac OS X Sonoma 14.6.1., OpenOffice 4.1.5. installed by homebrew package manager. Thanks in advance !
Last edited by Hagar Delest on Wed Jul 09, 2025 8:11 am, edited 1 time in total.
Reason: tagged solved.
Reason: tagged solved.
OpenOffice 4.1.15. on Mac OS X
- MrProgrammer
- Moderator
- Posts: 5322
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Location of config file
Anytime you reference a web page give us the link. I will guess that you mean: Starting Apache OpenOffice in Listening Mode
I suspect this documentation is out of date. As I recall, a decade or so ago OpenOffice reorganized its launch process. There used to be many XCU files but now for a MacOS installation there are only dictionaries.xcu and registrymodifications.xcu. The latter has thousands of settings. I doubt that it it's used during the launch process.
bash-3.2$ user='/Users/Guest/Library/Application Support/OpenOffice/4/user'
bash-3.2$ cd "$user"
bash-3.2$ find . -name '*.xcu'
./registrymodifications.xcu
./uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/sv6gq6nh.tmp/dictionaries.xcu
./uno_packages/cache/uno_packages/sv6gq6i6.tmp_/dict-en-20190701.oxt/dictionaries.xcu
bash-3.2$ aoo=/Applications/OpenOffice.app
bash-3.2$ cd "$aoo"
bash-3.2$ find . -name '*.xcu' | wc -l
0
You might want to look at the LibreOffice documentation since that's more likely to be current. I realize you're asking about OpenOffice, but information you find for LibreOffice may give you some ideas. I don't know where to find their development materials, but you can no doubt find them with a web search.I suggest looking at: /Applications/OpenOffice.app/Contents/MacOS/officehelper.py
That's is a Python script and contains a command to call soffice. I don't use Python and don't know if this will help in your situation. I have never tried to use listening mode and am only replying since you'll find very few people on the forum who use MacOS. From what I've seen in the forum people always use the -accept=socket parameter to use that mode. You're welcome to search for additional information.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
Re: Location of config file
An entry on the ooSetupConnectionURL property resides in the OpenOffice file (...)\share\registry\main.xcd
Cf. Setup.xcu does not exist after installation
Code: Select all
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
<value/>
</prop>
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit
Re: [Solved] Location of config file
You can change the entry in the main.xcd file or try other options:
⠀
- add an entry to the registrymodifications.xcu file of the user profile
Code: Select all
<item oor:path="/org.openoffice.Setup/Office"><prop oor:name="ooSetupConnectionURL" oor:op="fuse"><value>YourConnectionString</value></prop></item>
- place a XML file (.xcd) in the OpenOffice folder (...)\share\registry\, where the main.xcd file is located
⠀
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit