You are not logged in.

#1 2008-10-02 02:32:06

Odd-rationale
Member
Registered: 2008-02-05
Posts: 102

[SOLVED] OpenOffice does not use GTK theme

Hello! When I run OpenOffice from my fluxbox menu (/opt/openoffice/program/soffice) or from fbrun it does not use my gtk theme, but rather the ugly default theme. I already done "export OOO_FORCE_DESKTOP=gnome" and added it to my ~/.bashrc file. And if I run "/opt/openoffice/program/soffice" from the shell, it uses the gtk theme as expected.

Is this a problem with fluxbox? or what?

Thanks for your help!

Using openoffice-base 2.4.1-2, and fluxbox 1.1.1-1.

Last edited by Odd-rationale (2008-10-02 04:02:02)

Offline

#2 2008-10-02 03:10:01

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: [SOLVED] OpenOffice does not use GTK theme

Edit your fluxbox menu entry to run:
OOO_FORCE_DESKTOP=gnome /opt/openoffice/program/soffice
for the launch command.

Edit:
Actually, that might not work... hmm

You can always make a script that does

export OOO_FORCE_DESKTOP=gnome
soffice

and just run that.

Last edited by Statix (2008-10-02 03:16:01)


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#3 2008-10-02 04:00:10

Odd-rationale
Member
Registered: 2008-02-05
Posts: 102

Re: [SOLVED] OpenOffice does not use GTK theme

Ok. I guess that hack will work. Thanks!

For the record, here's the script I used:

#!/bin/bash

#### openoffice-gtk.sh - A script to start start openoffice with the GNOME/GTK environment

export OOO_FORCE_DESKTOP=gnome
/opt/openoffice/program/soffice $1

The $1 is so that you can run "./openoffice-gtk.sh -writer" or -calc, etc. normally, just as you would running soffice.

Offline

#4 2008-10-02 04:58:21

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [SOLVED] OpenOffice does not use GTK theme

maybe you should add this to our wiki - OOo 3.0 will need this even more wink

Offline

#5 2010-03-09 09:21:34

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: [SOLVED] OpenOffice does not use GTK theme

This thread is very old* but must be well used. So I'd like to add this

If you use a dark theme in openbox and want open office in a light theme then...

GTK2_RC_FILES=/usr/share/themes/SimpleGrey/gtk-2.0/gtkrc /usr/bin/soffice $1

Where 'SimpleGrey' can be replaced with any light theme of your choice for open office to use.

~

*I hope that does not count as necro bumping as this is up to date info

Offline

#6 2010-03-09 15:11:13

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED] OpenOffice does not use GTK theme

tawan wrote:

This thread is very old* but must be well used. So I'd like to add this

If you use a dark theme in openbox and want open office in a light theme then...

GTK2_RC_FILES=/usr/share/themes/SimpleGrey/gtk-2.0/gtkrc /usr/bin/soffice $1

Where 'SimpleGrey' can be replaced with any light theme of your choice for open office to use.

~

*I hope that does not count as necro bumping as this is up to date info

There already exists a package that does this. http://aur.archlinux.org/packages.php?ID=22383

Offline

Board footer

Powered by FluxBB