Everything that relies on GTK is failing now!

I was trying to install an application that required a later version of gtk, so I installed 2.9 “by hand” (since it wasn’t in the repositories). Now everything that relies on gtk that I used before is not working! How can I get them to work?

I tried reinstalling gtk but it makes no difference and I’m not sure how to uninstall gtk 2.9.

Any help is greatly appreciated!

Holy crap! I solved it!!

Thanks to:
Can’t start firefux on SuSE 10: undefined symbol: g_hash_table_ref

I have no idea why, but for some reason stuff was now using /usr/local/lib instead of /usr/lib stuff. So I used “vi” to edit “/etc/ld.so.conf” and I added “/usr/lib” on the line before “/usr/local/lib” and everything works!!

Any ideas why this occurred?

This is a small thing but now the icon for the window (in the taskbar) is just the generic “X” icon. It no longer has the thunderbird icon. Any idea how to get that back?

Hi
If when compiling by hand, run ./configure --help and ith will show you
all the switches to use. When building rpms and manual installs I
always add the --prefix=/usr/lib or /usr/lib/lib64 to avoid this
problems.

It probably occurred because ldconfig as root user wasn’t run in the
make install. Else you can add the directory in /etc/ld.conf.d in a
file called somename.conf and put the directory path to the library
directory and run ldconfig as well.

Not sure why you need to install what you did, as it was probably in
the configure process you just needed to add the prefix above and it
would have found the dependencies.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 11:36, 2 users, load average: 2.00, 2.06, 2.08
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Thanks! I’ll keep that in mind next time.

Any idea why the icon’s now gone?

Hi
The desktop file is either missing or not correct, what did you
install…I thought it was gnucash?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 12:07, 2 users, load average: 3.70, 2.52, 2.21
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Yes, I did, but it screwed up everything using gtk. And now that I have those things working again, thunderbird has lost its icon.

Hi
Have a look down in /usr/share/applications is a thundibird.desktop
file there? In that file use cat to see is a line saying icon=<blah>
and there should be one called that in /usr/share/icons directories?

Unless you installed as your user, then they should be in your home
directory somewhere.

Manual installation can create these sorts of issues, I suggest in the
future you look at building an rpm, they are not that hard especially
if you grab an existing src rpm and use the spec file from that.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 22:57, 2 users, load average: 2.06, 2.10, 2.09
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

There was no thunderbird.desktop file (probably because I installed it manually). I created one but it’s still not working. Any idea how I can match the manually installed one with a “.desktop” file? And what do i put for Icon? The complete path? The path relative to the application? And where do I create this “.desktop” file?

Hi
They are just text files :wink: It’s called MozillaThunderbird.desktop and
contains;


[Desktop Entry]
Name=Thunderbird
GenericName=Mail/News Client
Comment=Mail/News Client
Exec=thunderbird
Icon=thunderbird
Terminal=false
Type=Application


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 5 days 1:28, 3 users, load average: 0.10, 0.14, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Thanks but I created that exact file (in /usr/share/applications) and it still doesn’t have the icon! What could I be doing wrong?

Hi
But is there an icon for it in /usr/share/pixmaps?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 2:51, 4 users, load average: 2.25, 2.07, 1.17
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

No, how do I put one there? Can I use the XPM that comes with thunderbird and just copy it in to there?

I moved the xpm in there and renamed it “thunderbird.xpm” but it’s still not showing when I start the application. :frowning:

Hi
Open it with GIMP and save as thunderbird.png don’t forget to check
permissions :slight_smile:

Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 3:09, 5 users, load average: 2.37, 2.28, 1.94
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

I did that and put it in there but it’s still not working. The permissions:

-rw-r–r–

Hi
Run the following then;


sudo update-desktop-database -v /usr/share/applications/


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 4:09, 2 users, load average: 0.02, 0.05, 0.18
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

First off: thank you so much for helping me on this, I really appreciate the time you’ve put in here.

Unfortunately, that didn’t work either! :’(

It’s still not using the icon. The command printed out the following for all the applications:

File ‘/usr/share/applications/MozillaThunderbird.desktop’ lacks MimeType key
File ‘/usr/share/applications/hplip.desktop’ lacks MimeType key
…etc…

But all the others work. What could be keeping the icon from working now?

Hi
What happens if you browse in Nautilus to the directory where the
desktop files are. Does it look ok there?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 4:48, 3 users, load average: 0.02, 0.12, 0.10
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

I don’t have nautilus but in dolphin it looks correct. The “MozillaThunderbird.desktop” file has an icon and it’s the correct one.