LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   GTK apps in SuSE (9.1) (https://www.linuxquestions.org/questions/linux-distributions-5/gtk-apps-in-suse-9-1-a-181426/)

equinox 05-14-2004 10:43 AM

GTK apps in SuSE (9.1)
 
I've noticed running GTK apps in KDE looks horrible in SuSE, whether it be 9.1 or 9.0, is there any way to make them look a little better? Apps i'm reffering to include Xchat and Evolution.

if you compare it to Mandrake somehow they look very good in kde.

equinox 05-15-2004 06:31 AM

i found the fix, you'll have to install gnome desktop as well, but when in kde do this:

1) locate gnome-settings-daemon
2) then link it to your bin directory: ln -s /place/to/gnome-settings-daemon /home/username/bin
3) run the daemon
4) then xscreensaver will also start so run: xscreensaver-demo and disable it
5) run you gtk app and then use gnome theme settings to change the gtk theme if you like
6) enjoy better looking gtk apps in kde

enjoy

ultrabeam16 05-22-2004 04:29 PM

nice GTK apps without gnome installation
 
I've found a way of using GTK themes without the need to install gnome, well at least not all of it, the only packages you need is gnome-themes/gtk2-themes. Both of the packages just provide themes -- you dont need to install them if you already have a theme you'd like to use.

1. Create an empty file called ".no-qtrc-to-gtkrc-mapping" inside you're home directory and leave it empty. This an undocumented feature of SuSE Linux which I found by looking at the code for the startkde script at /opt/kde3/bin/startkde.

2. If you don't already have the ".gtkrc" and ".gtkrc-2.0" files in your home directory create them and add/modify the include statement to match the themes gtkrc file you want to use. For example if you want to use the industrial theme (gnome-themes package - installed in /opt/gnome/share/themes/Industrial on SuSE 9.1 - should be the same for earlier versions too):

include "/opt/gnome/share/themes/Industrial/gtk/gtkrc" for .gtkrc

and include "/opt/gnome/share/themes/Industrial/gtk-2.0/gtkrc" for .gtkrc-2.0


3. The fonts are usually ugly even if you set the themes so add a line to both of these files similar to gtk-font-name = "Sans 10"

where the 1st part is the font name and the number at the end is the size of the font.

Thats it! Your GTK apps should use the theme you configured in the include statements. No script editing... no gnome.

Now for my .gtkrc and .gtkrc-2.0 files:

.gtkrc
Code:

include "/opt/gnome/share/themes/Industrial/gtk/gtkrc"

gtk-font-name = "Verdana 8"

.gtkrc-2.0
Code:

include "/opt/gnome/share/themes/Industrial/gtk-2.0/gtkrc"

gtk-font-name = "Verdana 8"


equinox 05-22-2004 04:36 PM

cool, gonna try this now!!!

ok this works beautifully, however, i uninstalled qtpixmap and geramik, logged out of kde and back in and all works well, the 8 size for fonts was a bit small so i changed them to a 10, thanks alot m8 :)

objorkum 10-24-2004 03:39 PM

I know this post is old but I just must say: THANK YOU!

BluePyre 12-17-2004 07:27 AM

Yeah, thanks.
Works a charm.


All times are GMT -5. The time now is 12:10 AM.