shadowlands
November 2nd, 2009, 12:37 PM
I am not sure how to read the following so that I can enter it in to the terminal correctly. Can someone assist me or give me a link to better directions.
OPENOFFICE COLOR FIX
Karmic sets the OpenOffice colors to KDE or Gnome colors. This is especially a problem will color-coded spreadsheets, because the background colors set in the spreadsheet no longer show. If you DON'T want OpenOffice to use your desktop colors, this script will make that change. You may need to run this script again if OO or your desktop is updated.
Code:
#!/bin/bash
# openoffice color fix
# http://www.rebelzero.com/fixes/openofficeorg-dark-theme-workaround-with-ubuntu-804/8
test=`grep "export OOO_FORCE_DESKTOP=none" /usr/lib/openoffice/program/soffice`
if [ "$test" = "" ]; then
sudo sed -i -n '1h;1!H;${;g;s/#!\/bin\/sh\x0A/#!\/bin\/sh\x0Aexport OOO_FORCE_DESKTOP=none\x0A/;p;}' /usr/lib/openoffice/program/soffice;
fi
OPENOFFICE COLOR FIX
Karmic sets the OpenOffice colors to KDE or Gnome colors. This is especially a problem will color-coded spreadsheets, because the background colors set in the spreadsheet no longer show. If you DON'T want OpenOffice to use your desktop colors, this script will make that change. You may need to run this script again if OO or your desktop is updated.
Code:
#!/bin/bash
# openoffice color fix
# http://www.rebelzero.com/fixes/openofficeorg-dark-theme-workaround-with-ubuntu-804/8
test=`grep "export OOO_FORCE_DESKTOP=none" /usr/lib/openoffice/program/soffice`
if [ "$test" = "" ]; then
sudo sed -i -n '1h;1!H;${;g;s/#!\/bin\/sh\x0A/#!\/bin\/sh\x0Aexport OOO_FORCE_DESKTOP=none\x0A/;p;}' /usr/lib/openoffice/program/soffice;
fi