Sunday, December 23rd, 2007

Openbox, OpenOffice.org & GTK

While I'm on the topic of Openbox and themes, one thing that's been bugging me is OpenOffice.org and its refusal to natively dress in a GTK theme. I know it's a trivial issue, but when you've put some effort into creating a nice theme you at least want your applications to use it.

Anyhow, after a little Googling I found a fix:

1. Install openoffice-gtk package from Ubuntu repositories with this terminal command:

sudo apt-get install openoffice.org-gtk

2. Open your personal Openbox startup file for editing:

gedit ~/.config/openbox/autostart.sh

or system-wide startup file:

gksudo gedit /etc/xdg/openbox/autostart.sh

3. Add the following lines, save and exit:

#Force OpenOffice.org to use GTK theme
export OOO_FORCE_DESKTOP=gnome

4. Restart Openbox.

A couple of screenshots, in case you have no idea what I'm rambling on about :)

Before applying GTK theme:
Screenshot of OpenOffice.org under Openbox without GTK styling.

After applying GTK theme:
Screenshot of OpenOffice.org under Openbox with GTK styling.


Update @ 14:15 23/12/2007

When using Tango icons, don't forget to install the corresponding package for OpenOffice.org:

sudo apt-get install openoffice.org-style-tango

See updated screenshot below, this time with icons :)
Screenshot of OpenOffice.org under Openbox with GTK styling.


Browse Posts by Tag

13th advocacy antispam artwork bash bbc bcs bittorrent bloggers blogs boobs bookmarklets cli code colour commands comments conduit crontab crunchbanglinux debian design development email fluxbuntu fonts fun gedit gimp gnome google gos hack hacks hosting images javascript language launchpad life lincslug linux lugradio madness memes misc monkeys motu mysql n95 networking nokia openbox openoffice opensuse packaging penguins php phpmyadmin podcast ppa progbox programming projects puppy python random rants realplayer revu scripts security shell software ssh terminal terminator themes tools twitter typography ubuntu ubuntucse unitedhosting video virtualisation webdesign whird wiki windows woot zombies