warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/ on line 33.

Fix unable to shutdown / reboot / logout when OpenOffice Quickstarter is active

Here is a quick fix for OpenOffice bug reported on Launchpad that prevent Gnome logout if Quickstart is running.

Solution: change DocumentStoreUIEnabled in Recovery.xcu (OpenOffice) or main.xcd (Libreoffice) to false with this command

wget -O - | bash -


if [ -d /usr/lib/libreoffice ]; then
    # libreoffice
    sudo sed -i 's|<prop oor:name="DocumentStoreUIEnabled" oor:type="xs:boolean"><value>true|<prop oor:name="DocumentStoreUIEnabled" oor:type="xs:boolean"><value>false|g' /usr/lib/libreoffice/share/registry/main.xcd
    # openoffice
    sudo sed -i '5s|true|false|g' /usr/lib/openoffice/basis*/share/registry/data/org/openoffice/Office/Recovery.xcu

or use Diff to path Recovery.xcu
wget -nv -O - | \
patch -p2 /usr/lib/openoffice/basis3.2/share/registry/data/org/openoffice/Office/Recovery.xcu

Optional: remove user personal Recovery.xcu files
find /home/*/ -name Recovery.xcu -exec rm {} \;


Enable UNO listener on Windows

wordpad "C:\Programme\ 3\Basis\share\registry\data\org\openoffice\Setup.xcu"
search for <node oor:name="Office"> (by default line 3) and add
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">

OpenOffice Macros with Basic

Create new Macro
Extras > Makros > Makros verwalten > Makro...
Meine Makros > Standard > Neu
# open a external application (v1)
Sub Main
	item = ThisComponent.getCurrentSelection.String
	If len(item) > 0 then
		rem msgbox "Selection: " & item
		item = UCase(item)
		oService = createUnoService("")
		oService.execute("/media/programme/starter/scripts/", "item_id=" & item, 0)
End Sub
# open a external application (v2)
Sub Main
selectedRow = ThisComponent.CurrentSelection.getRangeAddress.StartRow
itemId = ThisComp


User Java config file in Libreoffice 4.3

Configure default paper size
echo "a4" > /etc/papersize

enable uno listener
sudo apt-get install -y patch
#wget -P /tmp/
#patch -p2 /usr/lib/openoffice/share/registry/data/org/openoffice/Setup.xcu < /tmp/Setup.xcu_.diff

add path to java
wget -P /tmp/

Syndicate content