OO.o frequently asked user questions

How do I turn off the splash screen ?

Edit your /usr/lib/ooo-1.0.3/program/sofficerc (or equivalent), and set Logo=0 instead of 1.

What environment variables can I tweak when things don't work

For those unfamiliar with Unix; these variables can be set before running OO.o by doing export variable=value on the console. Make sure there is no existing OO.o running when you re-run OO.o though.

variablevaluesbehavior
AUDIODEVeg. /dev/audio3 This allows a non-default audio device to be assigned for use in OO.o. Particularly useful in thin-client situations.
DISPLAYeg. :0.0 A very standard X environment variable to instruct the application to start on a remote / different display.
GALLERY_ENABLE_ID_DIALOGset Enable a right click menu allowing the icons' ID to be set, assuming you have write access to the gallery theme.
GALLERY_SHOW_HIDDEN_THEMESset Allows the gallery to show the private themes used for HtmlExportButtons and various special powerpoint shapes.
GALLERY_SHOW_PRIVATE_TITLEset Adds a right click -> 'Title' option for the gallery icons; NB. these must be writable by the user.
SAL_ANTIALIAS_DISABLEset This disabled anti-aliased font rendering; useful for debugging.
SAL_DO_NOT_USE_INVERT50true If you are running XFree86 < 4.2 and have an S3 Savage chip, you must use this, otherwise OOo will not work and the Xserver will eventually hang / lock the machine.
SAL_ENABLE_GLX_XFREE4set If set, this enables the use of XFree4.0's GLX module which is considered to be badly buggy and is disabled by default; apparently this is mostly Matrox related however.
SAL_HIGHPRIORITY_REPAINTany Apparently useful for taking screenshots.
SAL_IGNOREXERRORSany Instructs the GUI to ignore any errors from the X server.
SAL_NOOPENGLtrue If set to 'true' this completely disables probing for and/or use of OpenGL within OO.o. This can be important for licensed and/or buggy implementations.
SAL_SYNCHRONIZEset This forces the X server to report errors synchronously, which means that the application runs far slower, but pinpointing an error in the code is possible.
SAL_VISUALeg. 24 bitdepth Overrides the choice of visual algorithm to force a certain choice of bitdepth from the list of supported visuals.

This list is not exhaustive - there are many, many similar tweaks built into OO.o; Search for 'getenv' in LXR for a more exhaustive result.

X server crash with Matrox cards

If your X server is using the mga driver, you may find your X server crashes. If so, add this option to the mga 'Device' section of /etc/X11/XFree86Config[-4]:

Option "XaaNoScreenToScreenColorExpandFill"

How do I print lots of files to PDF ?

Even when OpenOffice Ximian Edition can export directly to a PDF file and it does not use psprint.conf script anymore, you can still add a PDF printer using CUPS.
So just follow the next few steps to add a PDF printer and OpenOffice will see it automatically.

  1. Get the pdf script written by Michael Goffioul, and save it into your /usr/lib/cups/backend directory
  2. Apply a chown root:root pdf && chmod a+rx pdf command to set it executable as root.
  3. Then download distiller.ppd to your /usr/share/cups/model/ directory.
  4. Restart CUPS with a /sbin/service cups restart command (as superuser, you have CUPS installed right?)
  5. Enter the CUPS web interface (http://localhost:631)
  6. Select the "Do Administration Tasks" option (you'll be prompted for a password)
  7. Click on "Add Printer" and enter a printer Name at least. Then click on continue.
  8. On Device, select PDF Writing
  9. The next step is to write a Device URI, here type: pdf:/tmp or whatever directory you want for the output file to be saved.
  10. Then select the in Model/Driver select Adobe and click on continue.
  11. Select Acrobat Distiller again.
  12. And that's all you've got a brand new PDF printer, now go to OpenOffice and try to print something

OK, but I don't like the autogenerated filename, how can I change it?

That annoying filename will prevent you for an overwriting. Anyway, I don't like it either, so go and change your pdf script, for something like this:
# generate output filename
OUTPUTFILENAME=
if [ "$3" = "" ]; then
OUTPUTFILENAME="$PDFDIR/MyPDFfile.pdf"
else
#OUTPUTFILENAME="$PDFDIR/${3//[^[:alnum:]]/_}.pdf"
OUTPUTFILENAME="$PDFDIR/My${3//[^[:alnum:]]/_}PDFfile.pdf"
fi
echo "Output file name: $OUTPUTFILENAME" > $LOGFILE
I keep it statically as $PDFDIR/MyPDFfile.pdf because of a PHP monitor, so everytime I send something to print this script returns a download box and then I can save it or print it directly to a non "virtual" printer.