VectorLinux

The nuts and bolts => X-Rated => Topic started by: taime1 on May 06, 2008, 10:30:36 am

Title: Gtk Themes not finding their Engines. (((SOLVED)))
Post by: taime1 on May 06, 2008, 10:30:36 am
i compiled a couple different theme engines (clearlooks and nimbus), and whether i use --prefix=/usr or not, the themes that depend on those engines do not seem to be able to find them. in other words, the themes fail. ugly widgets, scroll bars etc... what am i doing wrong?
Title: Re: Gtk Thmes not finding their Engines.
Post by: |nic| on May 06, 2008, 11:04:43 am
Hi,

I have kind of the same problem. What I did is type the theme that I wanted to use in the .gtkrc-2.0 file in my home directory. I'm using Clearlooks-Deepsky.

so my file looks like this:

Code: [Select]
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/Clearlooks-Deepsky/gtk-2.0/gtkrc"

include "/home/nic/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

hope this can help.

greetz

Title: Re: Gtk Thmes not finding their Engines.
Post by: exeterdad on May 06, 2008, 11:10:07 am
If you are using VL5.9 Standard (can't confirm the others at the moment), your theme engines should end up in:
/usr/lib/gtk-2.0/2.10.0/engines

I didn't attempt nimbus, but I did compile and install clearlooks without any issues just the other day.

Try opening a application that uses gtk from the command line in a console.  You will see error messages flashing by that might give you clues what is going wrong.
Title: Re: Gtk Thmes not finding their Engines.
Post by: taime1 on May 06, 2008, 11:59:52 am
my themes did not end up in that foler. in fact, they are in all kinds of other folders like /usr/gtk/.... and /user/local/gtk....

i tried using --prefix=/usr/lib   but got nothing. how can i get these engines to install correctly?
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:09:45 pm
I used this file:
http://www.gnome-look.org/CONTENT/content-files/19527-clearlooks-0.6.2.tar.bz2

Located on this page:
http://www.gnome-look.org/content/show.php?content=19527

I extracted, and built it with the basic commands:
./configure --prefix=/usr
make
make install

It just worked.

Quote
leeh:$ ls /usr/lib/gtk-2.0/2.10.0/engines/

libclearlooks.la*  libpixmap.la*  libsvg.la*  libxfce.la*
libclearlooks.so*  libpixmap.so*  libsvg.so*  libxfce.so*

Besides the theme engine, it will also install some themes that use the engine.  Here's a list of all the files it created:
Quote
/usr/
/usr/lib/
/usr/lib/gtk-2.0/
/usr/lib/gtk-2.0/2.10.0/
/usr/lib/gtk-2.0/2.10.0/engines/
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.la
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
/usr/share/
/usr/share/icons/
/usr/share/icons/Clearlooks/
/usr/share/icons/Clearlooks/16x16/
/usr/share/icons/Clearlooks/16x16/gtk/
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-first-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-refresh.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-cancel.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-last-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-forward-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-forward-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-bottom.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-back-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-back-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-down.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-first-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-apply.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-last-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-up.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-top.png
/usr/share/icons/Clearlooks/24x24/
/usr/share/icons/Clearlooks/24x24/gtk/
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-first-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-refresh.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-cancel.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-last-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-forward-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-ok.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-forward-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-bottom.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-back-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-back-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-down.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-first-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-apply.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-last-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-up.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-top.png
/usr/share/icons/Clearlooks/index.theme
/usr/share/themes/
/usr/share/themes/Clearlooks-Quicksilver/
/usr/share/themes/Clearlooks-Quicksilver/gtk-2.0/
/usr/share/themes/Clearlooks-Quicksilver/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks-DeepSky/
/usr/share/themes/Clearlooks-DeepSky/gtk-2.0/
/usr/share/themes/Clearlooks-DeepSky/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks/
/usr/share/themes/Clearlooks/gtk-2.0/
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks/index.theme
/usr/share/themes/Clearlooks-Olive/
/usr/share/themes/Clearlooks-Olive/gtk-2.0/
/usr/share/themes/Clearlooks-Olive/gtk-2.0/gtkrc
Title: Re: Gtk Themes not finding their Engines.
Post by: taime1 on May 06, 2008, 01:19:31 pm
Well,  didnt have a problem getting Clearlooks to install, but any theme that Relies on clearlooks engine, doesnt work. and the same goes for the other engine i compiled. So i have clearlooks, but not the theme which depends on it. Tried recompiling a few times.. still nothing...
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:25:22 pm
are your themes actually found?  Are they installed in /usr/share/themes/YOURNEWTHEMEFOLDER or in $HOME/.themes/YOURNEWTHEMEFOLDER  ?
Did you try running a gtk app from the console to read any complaints?
Title: Re: Gtk Themes not finding their Engines.
Post by: taime1 on May 06, 2008, 01:27:17 pm
themes are in .themes   and i did run gtk app, go the error : Unable to locate theme engine in module_path
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:36:44 pm
Yuck.  Not much help there.
Just to be clear, a couple posts back you said you didn't have /usr/lib/gtk-2.0/2.10.0/engines/.

But then later you said it installed fine.  Was you your first comment a mistake, and you do have the .la and .so files in THAT folder?
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:43:12 pm
Also forgot to mention something kinda critical. As root you need to execute: ldconfig after the "make install"  But it's never too late. :)
Title: Re: Gtk Themes not finding their Engines.
Post by: taime1 on May 06, 2008, 01:44:24 pm
i do in fact have that folder.. in fact, thats where pixpams engine is. but when i compile, it doesnt install to that folder. even if i use the prefix --prefix=/usr   or /usr/lib  or /usr/lib/gk... i tried everything
Title: Re: Gtk Themes not finding their Engines.
Post by: taime1 on May 06, 2008, 01:45:39 pm
ldconfig!!! omg.. im such an idiot.. ive been doing updatedb.  aw geez.. ill have to give it a try.. ill vnc my box at home, and ill let you know.
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:49:15 pm
lol  Hope that's the ticket.  Don't feel like an idiot, I didn't even think to mention it until just now.  Kinda out of the habit of running it since it's unnecessary when building packages.  It's ran on the users machine by the package manager when installing packages.
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 01:52:26 pm
i do in fact have that folder.. in fact, thats where pixpams engine is. but when i compile, it doesnt install to that folder. even if i use the prefix --prefix=/usr   or /usr/lib  or /usr/lib/gk... i tried everything

That's really odd.  Are you reusing the same sources for each build attempt?  You might want to delete the folder and extract yourself a fresh one.  It may have a cache from earlier attempts and not accepting your new --prefix. 

Just a guess.
Title: Re: Gtk Themes not finding their Engines.
Post by: exeterdad on May 06, 2008, 02:04:59 pm
Oh cool!  I got 1337 posts on my last post and got my 'leet' thingie instead of my post count.  Someone owes me a beer dang it! :D

(http://img292.imageshack.us/img292/4314/leetov4.png)
Title: Re: Gtk Themes not finding their Engines.
Post by: taime1 on May 06, 2008, 04:27:15 pm
so uh... yeah... ldconfig.  *smacks himsef in the forehead*

i just wanna say, this is by FAR the best linux community on the web.
Title: Re: Gtk Themes not finding their Engines. (((SOLVED)))
Post by: exeterdad on May 06, 2008, 08:54:56 pm
lol...  Worst thing you've ever done right? :D
Glad you're in business.
Title: Re: Gtk Themes not finding their Engines. (((SOLVED)))
Post by: exeterdad on May 07, 2008, 09:09:08 am
Little late for you to take advantage of...  but clearlooks is packaged and in testing.

I'm here to tell you that you have nothing to be ashamed of when it came to building nimbus.  It was just plain stupid.  The configure script looks for already installed files in the current directory!  I solved it by figuring out what files it was looking for and creating links in the current dir to the actual files.  It also required a newer version of icon-naming-utils, which in turn needed the XML::Simple perl module built (I hate doing those).  But we're all set.  I've packaged them all and will get them in testing (hopefully) some time today.  Don't hold me to it as I've a bunch to do today (real life).

I have to say nimbus looks cool enough by itself.  I'd be interested in a link to your theme that uses both clearlooks and nimbus.  I'm sure it's very nice.
Title: Re: Gtk Themes not finding their Engines. (((SOLVED)))
Post by: exeterdad on May 07, 2008, 11:25:50 am
Nimbus and friends are in testing now :)
Title: Re: Gtk Themes not finding their Engines. (((SOLVED)))
Post by: taime1 on May 08, 2008, 07:03:38 am
Oh very cool!  yeah, i had a booger of a time figuring out that i had to create those symlinks and then get the other packages before i could build it. but i have to say, for a newb, im pretty proud of myself, hehe. nimbus is a great looking theme. i just grabbed the first release of opensolaris, and it uses that Sun theme. looks familiar!