LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-16-2010, 03:43 AM   #1
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
Using QT for GNOMish apps


My Xubuntu installation contains a number of KDE apps (e.g. Krusader) which have a nice QT theme. I was wondering if there was any way I could apply that QT theme to apps such as Openoffice and skype?
 
Old 03-16-2010, 05:16 AM   #2
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
The gtk2-engines-qtcurve package should give you what you want for most GTK apps. Skype has an option to use QTCurve, but OpenOffice just calls GTK colours, I believe.
Note that you'll have to use the KDE System Settings dialog to actually edit the QTCurve settings, and AFAIK you can't use non-QT Curve themes.
I could be wrong though, I haven't looked into it much.
 
1 members found this post helpful.
Old 03-16-2010, 06:02 AM   #3
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
How does openoffice look on a KDE installation? does it imitate a GTK theme or has it some sort of KDE integration?
 
Old 03-16-2010, 08:51 AM   #4
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
I believe in the package repositories (For Debian/Ubuntu, at least) there's a style which is what it defaults to in KDE. Oxygen is the most likely one. Have a look through your available packages and look for the styles for Openoffice - they should be with the rest of the Openoffice packages
 
Old 03-16-2010, 12:03 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by pickarooney View Post
My Xubuntu installation contains a number of KDE apps (e.g. Krusader) which have a nice QT theme. I was wondering if there was any way I could apply that QT theme to apps such as Openoffice and skype?
Yes, kind of. But you are wrong in a fundamental thing: neither OpenOffice nor Skype are Gnome-ish apps. They are not even Gtk+ based to start with.

OpenOffice rolls its own toolkit, which has nothing to do with either Gtk+ or QT. Skype *is* a QT application (not a KDE one though, that's probably why it doesn't pick the KDE theme).

Pure QT applications can be configured using the "qtconfig" tool. Run it and set the theme there.

For OpenOffice the thing is a bit more complex. OpenOffice has the capability to use your system Gtk+ or QT theme, the problem is that it tries to autodetect your environment. You are probably using Xfce, which is the Xubuntu default desktop. Xfce is Gtk+ based, hence OpenOffice is probably detecting that and using your Gtk+ theme to integrate better in your desktop.

You can force a given desktop for OO though, via the OOO_FORCE_DESKTOP variable. To do a quick test just fire up a terminal and inside launch openoffice this way:

Code:
$ OOO_FORCE_DESKTOP="kde" oowriter
If it works as desired, then you'll have to set that variable in whatever the relevant place is in Xubuntu. You can try with a line like this in /etc/profile, but I know nothing about Ubuntu nor its default shell.

Code:
export OOO_FORCE_DESKTOP="kde"
Then reboot and see if the effect is now permanent.
 
1 members found this post helpful.
Old 03-16-2010, 02:44 PM   #6
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Thanks for the OOO tip. It looks fine when run with the FORCE_DESKTOP prefix; I've added it to .bashrc and it seems to work.
On the other hand, QTConfig gives a very limited set of themes and none match the one which is used by KTorrent, Krusader etc. (and Openoffice with the above command).
Skype gets its theme from the settings in this tool though.

I guess I need to "force desktop" for skype, guayadeque etc... if only they all had handy environment variables
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing apps and restoring crashed apps in GNU/Linux aero_z Linux - Newbie 11 01-20-2009 02:10 PM
GTK apps display chinese, QT apps dont zhangmaike Linux - Desktop 0 07-03-2007 11:57 PM
Slack 9.1 - PHP apps can't access MySQL but Perl Apps can tallship Linux - Software 1 06-13-2004 08:41 AM
Already installed apps not loading after rpm installer for other apps toastermaker Linux - Newbie 11 11-17-2003 11:25 AM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration