[Solved] Location of config file

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Locked
bwy
Posts: 2
Joined: Tue Jul 08, 2025 5:23 pm

[Solved] Location of config file

Post by bwy »

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.
OpenOffice 4.1.15. on Mac OS X
User avatar
MrProgrammer
Moderator
Posts: 5322
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Location of config file

Post by MrProgrammer »

bwy wrote: Tue Jul 08, 2025 5:32 pm Developer Guides says …
Anytime you reference a web page give us the link. I will guess that you mean: Starting Apache OpenOffice in Listening Mode

bwy wrote: Tue Jul 08, 2025 5:32 pm Developer Guides says the file is <OfficePath>/share/registry/data/org/openoffice/Setup.xcu, but that one does not exist.
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.

bwy wrote: Tue Jul 08, 2025 5:32 pm But i cant locate the config file to always start in listening mode.
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).
cwolan
Posts: 186
Joined: Sun Feb 07, 2021 3:44 pm

Re: Location of config file

Post by cwolan »

An entry on the ooSetupConnectionURL property resides in the OpenOffice file (...)\share\registry\main.xcd

Code: Select all

<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
     <value/>
</prop>
Cf. Setup.xcu does not exist after installation
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit
bwy
Posts: 2
Joined: Tue Jul 08, 2025 5:23 pm

Re: Location of config file

Post by bwy »

thx MrProgrammer and cwolan :-)
OpenOffice 4.1.15. on Mac OS X
cwolan
Posts: 186
Joined: Sun Feb 07, 2021 3:44 pm

Re: [Solved] Location of config file

Post by cwolan »

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
    SetupConnectionURL.zip
    (452 Bytes) Downloaded 4 times
In both cases replace the YourConnectionString above with the appropriate entry.
xcdPurview.png
xcdPurview.png (43.82 KiB) Viewed 1056 times
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 25.8
Windows 7,10,11 64-bit
Locked