LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-14-2006, 05:16 AM   #1
megabot
Member
 
Registered: Aug 2005
Posts: 39

Rep: Reputation: 15
OpenOffice and Gnome


Hello,

I have just installed the Gnome package for Openoffice called 'openoffice.org-gnome', but when I start Openoffice it seems to still be using those same openoffice icons and theme. What do I need to do in order to make it use gtk or gnome theme and icons.

I have also tried installing the transitional package 'openoffice.org-gtk-gnome', but that didn't help either.

I have also tried the following commands:
export OOO_FORCE_DESKTOP=gnome
export SAL_USE_VCLPLUGIN=gnome

Also creating a /etc/openoffice/openoffice.conf file with those lines in it, and still it didn't help.


Does anyone have any advise on this matter, how to make Openoffice use GTK2/GNOME?

PS: I am using Pekwm as my desktop manager.
Grts
 
Old 05-14-2006, 11:44 AM   #2
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
OOo should use the gtk theme under GNome automatically. What version of OOo are you using?
 
Old 05-14-2006, 02:29 PM   #3
megabot
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
I am using OpenOffice.org version 2.0.2

I am using GNOME as my diplay manager, but Pekwm

Last edited by megabot; 05-14-2006 at 02:31 PM.
 
Old 05-15-2006, 10:06 AM   #4
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
It certianly should work automatically.

I don't think "export SAL_USE_VCLPLUGIN=gnome" is a valid command, but "export SAL_USE_VCLPLUGIN=gtk" definitely is. I'm also doubtful that creating that config file will do anything, but inserting the code directly into the main startup script should work.

Try inserting the line
Code:
export OOO_FORCE_DESKTOP=gtk
at the top of the main startup script ({OOo install directory}/program/soffice). I know that works to make OOo use gtk widgets under other desktop environments.

Last edited by hand of fate; 05-15-2006 at 10:07 AM.
 
Old 05-15-2006, 01:19 PM   #5
megabot
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
I am using Debian. By the main startup script I assume you mean the '/usr/bin/ooffice', so I added the line with the 'gtk' part in quotes or without quotes, but still nothing.
 
Old 05-16-2006, 09:09 AM   #6
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Are you using the package from the OOo site? If so then the main startup script will be somewhere like /opt/openoffice2/program/soffice.

Unless your installation is completely non-standard, the files under /usr/bin are just links to the files in the OOo installed directory. The actual file you need to edit will be {wherever OOo is installed}/program/soffice.

"gtk" should not be in quotes.

Do you have KDE installed at all? If so then does OOo look use QT widgets there? If you haven't got a full KDE installation but have some of the KDE libraries you could try substituting "kde" for "gtk", and see if it then used QT.

What is the program actually looking like at the moment?

PS - I noticed you mentioned icons and themes together. Actually the widget set and the icon set are two completely different settings. You can shoose which icon set to use under Tools>Options>View, where there's an option to choose your icon set. This is a completely different setting to the desktop integration.
 
Old 05-16-2006, 12:16 PM   #7
megabot
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
I just typed 'export OOO_FORCE_DESKTOP=kde' in a xterm window and started ooffice and it seems that KDE does work, but when I use gtk it doesn't work. Could it be I am missing some gnome/gtk libraries? Because other gnome based applications I use do work properly.

Also when starting the application after typing 'export OOO_FORCE_DESKTOP=kde' I get the following message in xterm:
I18N: Operating system doesn't support locale "en_US"

As for the installation, my distribution is Debian, so I used the Debian packages to install Openoffice.

About me mentioning icons and themes together, should have just been themes.

By the way, about this export OOO_FORCE_DESKTOP=kde command. Do I have to type this once and its ok, or do I have to type this everytime I boot the system? If so where should I put this so that it gets executed automaticly?

Last edited by megabot; 05-16-2006 at 12:19 PM.
 
Old 05-17-2006, 09:26 AM   #8
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by megabot
I just typed 'export OOO_FORCE_DESKTOP=kde' in a xterm window and started ooffice and it seems that KDE does work, but when I use gtk it doesn't work. Could it be I am missing some gnome/gtk libraries? Because other gnome based applications I use do work properly.
If KDE works but Gnome doesn't, it certainly looks like a Gnome issue rather than an OOo one, but it seems rather starnge altogether. Do you get any error message if ypu type "OOO_FORCE_DESKTOP=gnome" or "SAL_USE_VCLPLUGIN=gtk" into a term?

Not sure I can help any more with that.

Quote:
Originally Posted by megabot
By the way, about this export OOO_FORCE_DESKTOP=kde command. Do I have to type this once and its ok, or do I have to type this everytime I boot the system? If so where should I put this so that it gets executed automaticly?
This will have to be re-done every time you boot the system. In fact it only works at all for instances of OOo launched from the term window into which the command has been typed, and launching OOo from an term is probably not that convenient anyway.

To make this happen automatically, insert that line into the OOo startup script (as mentioned already this should be {wherever OOo is installed}/prgram/soffice).

As an aside:
I've just doen some experimenting, and found that "SAL_USE_VCLPLUGIN=gtk" and "OOO_FORCE_DESKTOP=gnome" have the same effect on the themes, but using "OOO_FORCE_DESKTOP=gnome" allows OOo to use the Gnome file picker (optionally), but "SAL_USE_VCLPLUGIN=gtk" does not.

For KDE-integration, SAL_USE_VCLPLUGIN=kde" and "OOO_FORCE_DESKTOP=kde" do exactly the same thing.
 
Old 05-17-2006, 12:44 PM   #9
megabot
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
I don't get any error when typing "OOO_FORCE_DESKTOP=gnome" or "SAL_USE_VCLPLUGIN=gtk" in a term.

Can't seem to find the {wherever OOo is installed}/prgram/soffice directory anywhere. Perhaps it is installed in another dir? The startupi script is called 'ooffice' right?

Thanks for your help so far, really helped me out a lot to understand this issue.
 
Old 05-17-2006, 05:16 PM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
This doesn't address your problem about doing it automatically. I use AMD64 and have installed OO Writer and Calc from an experimental repo. I'm not surprised that the icons are not changed automatically. OTOH, when I installed 'openoffice.org-gnome', it put a nicer set of icons in /usr/share/pixmaps, so I just changed to those from the icon Properties.
 
Old 05-18-2006, 10:35 AM   #11
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by megabot
I don't get any error when typing "OOO_FORCE_DESKTOP=gnome" or "SAL_USE_VCLPLUGIN=gtk" in a term.

Can't seem to find the {wherever OOo is installed}/prgram/soffice directory anywhere. Perhaps it is installed in another dir? The startupi script is called 'ooffice' right?

Thanks for your help so far, really helped me out a lot to understand this issue.
There won't be a directory called "{wherever OOo is installed}/prgram/soffice". That is the path to the startup script. The script is called "soffice", and it is in the directory {wherever OOo is installed}/program.

Using the official (RPM) packages, OOo will be installed in a directory under /opt, but if you're using a third-party package it won't necessarily be in the same place.

Quote:
Originally Posted by rickh
This doesn't address your problem about doing it automatically. I use AMD64 and have installed OO Writer and Calc from an experimental repo. I'm not surprised that the icons are not changed automatically. OTOH, when I installed 'openoffice.org-gnome', it put a nicer set of icons in /usr/share/pixmaps, so I just changed to those from the icon Properties.
Unless I'm completely on the wrong thread, the question is about gtk themes, not icons.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SCIM and OpenOffice on Gnome r-t Linux - Software 0 01-30-2005 05:19 AM
Gnome 2.4 and OpenOffice 1.1 shepper Linux - Software 4 11-09-2003 07:58 AM
Not adding accents in OpenOffice with GNOME Jose Muņiz Linux - Software 0 10-20-2003 10:19 AM
Gnome OpenOffice quickstarter haamann Linux - Software 0 10-07-2003 03:21 AM
OpenOffice in Slack 9's gnome dbkluck Slackware 1 07-17-2003 04:02 AM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration