Page 1 of 1
					
				[Solved] Location of config file
				Posted: Tue Jul 08, 2025 5:32 pm
				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 !
			 
			
					
				Re: Location of config file
				Posted: Tue Jul 08, 2025 9:49 pm
				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.
 
			
					
				Re: Location of config file
				Posted: Tue Jul 08, 2025 10:26 pm
				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 
			
					
				Re: Location of config file
				Posted: Wed Jul 09, 2025 7:57 am
				by bwy
				thx MrProgrammer and cwolan 

 
			
					
				Re: [Solved] Location of config file
				Posted: Wed Jul 09, 2025 9:57 am
				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
In both cases replace the 
YourConnectionString above with the appropriate entry.
⠀
			
		
				
			 
- xcdPurview.png (43.82 KiB) Viewed 1687 times