#!/bin/sh
# This file is part of ooo2pdf.
#
# ooo2pdf is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# ooo2pdf is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with ooo2pdf.  If not, see <http://www.gnu.org/licenses/>.

# this requires daemontools (for fghack) and xvfb to be installed
# this works in Ubuntu 7.04 and may need to be modified to work on your
# particular setup
xinit /usr/bin/fghack `which ooffice` "-accept=socket,host=localhost,port=2002;urp;" -headless -invisible -display :93 -- /usr/bin/Xvfb :93 -ac -nolisten tcp -noreset

