OpenOffice -headless on a Mac

Issues installing under the Mac OSX - X11 - Aqua
Post Reply
Steffan
Posts: 3
Joined: Wed Jan 07, 2009 8:30 am

OpenOffice -headless on a Mac

Post by Steffan »

On both the official intel build and PPC build for MacOS X I have run into an issue where the builds are linked to the GUI even when specified to launch -headless. If a user is not logged in while attempting to use OpenOffice I get the following error regardless of the user I am while executing the service.

testserver:~ root# /Applications/OpenOffice.org.app/Contents/MacOS/soffice -headless -display :0 -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
[4] 1736
testserver:~ root# Mon Feb 9 23:29:04 testserver.local soffice[1736] <Warning>: 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
2009-02-09 23:29:04.293 soffice[1736:10b] *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x2747db0> '(null)') unlocked when not locked
2009-02-09 23:29:04.299 soffice[1736:10b] *** Break on _NSLockError() to debug.

Is there a trick I am missing to stop this from happening? It does this on both 10.4 and 10.5
OOo 3.0.X on Mac OSx Leopard + CentOS 4.6
Steffan
Posts: 3
Joined: Wed Jan 07, 2009 8:30 am

Re: OpenOffice -headless on a mac.

Post by Steffan »

Ok, this seems to the issue:

http://developer.apple.com/technotes/tn ... UNCHDAGENT

What I don't understand though is if I say -headless why does OOo need to connect to the window server. Is this a bug in OOo?
OOo 3.0.X on Mac OSx Leopard + CentOS 4.6
User avatar
Hagar Delest
Moderator
Posts: 32670
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice -headless on a mac.

Post by Hagar Delest »

Moving the thread to the Mac forum.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply