Question Details

Browse

Command Timed Out Error on OOo 2.4?

By Kyle Saxton - May. 10, 2008

I recently upgraded to Leopard and everytime I start OOo it gives me a "Command Time Out" error. It doesn't really effect the functionality/performance but it's irritating and I'm sure its a simple fix. Would appreciate your help.

Cheers.


Answers

Add Answer
  1. By Chuck Ben on May. 10, 2008

    Here's a fix for you - http://shaunmcdonald131.blogspot.com/2008/03/ooo-possible-fix-for-comman...


    Open the file OpenOffice.org 2.4.app/Contents/Resources/Scripts/main.scpt in "Script Editor". (You will need to control+click the application icon and choose "Show Package Contents".)


    Then replace the code block "on openSoffice(aFile)"...."end openSoffice" with the following:


    on openSoffice(aFile)

    if (atLeastOSXVersion(10, 5, 0)) then

    -- if we have leopard, we don't need to manually start the X server first

    set theCmd to "sh " & (quoted form of (POSIX path of getOOProgramPath() & "soffice")) & " "

    do shell script theCmd & aFile & shellTerminator()

    else

    set theDisplay to startXServer()

    if (theDisplay is equal to "error") then

    return

    end if

    set theEnv to "DISPLAY=" & theDisplay & " ; export DISPLAY; "

    set theCmd to "sh " & (quoted form of (POSIX path of getOOProgramPath() & "soffice")) & " "

    do shell script theEnv & theCmd & aFile & shellTerminator()

    -- logEvent("open CMD: " & theEnv & theCmd & aFile)

    end if

    end openSoffice


    0 Votes
  2. By Chuck Ben on May. 10, 2008

    on openSoffice(aFile)

    if (atLeastOSXVersion(10, 5, 0)) then

    -- if we have leopard, we don't need to manually start the X server first

    set theCmd to "sh " & (quoted form of (POSIX path of getOOProgramPath() & "soffice")) & " "

    do shell script theCmd & aFile & shellTerminator()

    else

    set theDisplay to startXServer()

    if (theDisplay is equal to "error") then

    return

    end if

    set theEnv to "DISPLAY=" & theDisplay & " ; export DISPLAY; "

    set theCmd to "sh " & (quoted form of (POSIX path of getOOProgramPath() & "soffice")) & " "

    do shell script theEnv & theCmd & aFile & shellTerminator()

    -- logEvent("open CMD: " & theEnv & theCmd & aFile)

    end if

    end openSoffice


    0 Votes
  3. By Robert Poor on Jun. 16, 2009

    Even better: download the new Aqua version of OpenOffice for OS X from openoffice.org -- it doesn't require x-windows at all.


    -- ff


    0 Votes
Share your knowledge