Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.