--- /usr/lib/libreoffice/program/soffice.old 2013-01-24 22:38:34.000000000 -0500 +++ /usr/lib/libreoffice/program/soffice 2013-06-18 20:28:23.402767341 -0400 @@ -31,13 +31,12 @@ # export STAR_PROFILE_LOCKING_DISABLED # -# file locking now enabled by default -SAL_ENABLE_FILE_LOCKING=1 -export SAL_ENABLE_FILE_LOCKING - -# Uncomment the line below if you suspect that OpenGL is not -# working on your system. -# SAL_NOOPENGL=true; export SAL_NOOPENGL +# read & apply Ubuntu config file +FILE_LOCKING=auto +OPENGL_SUPPORT=no +[ -f /etc/libreoffice/soffice.sh ] && . /etc/libreoffice/soffice.sh +[ "$FILE_LOCKING" != "no" ] && export SAL_ENABLE_FILE_LOCKING=1 +[ "$OPENGL_SUPPORT" = "no" ] && export SAL_NOOPENGL=true # uncomment line below to disable anti aliasing of fonts # SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE