Ubuntu – How to find out if a program uses GTK 2 or 3

gtkinkscape

Thinking of trying to tweak a theme to get Inkscape more compact. Was wondering if there was a way to tell which version of GTK+ it uses?

Best Answer

Use ldd. Mine appears to use gtk2 libraries.

$ ldd /usr/bin/inkscape | grep gtk
    libgtkmm-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libgtkmm-2.4.so.1 (0x00007fa8de4d5000)
    libgtkspell.so.0 => /usr/lib/libgtkspell.so.0 (0x00007fa8dcfe1000)
    libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007fa8dc9a7000)
Related Question