WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Is gtk2.scm only for scm-apps?  (Read 3446 times)

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Is gtk2.scm only for scm-apps?
« on: April 22, 2012, 04:30:54 PM »
I have created a tcz of a browser plugin I sometimes use. This plugin has gtk2 as a dependency and works fine with gtk2.tcz but not with gtk2.scm. Is gtk2.scm only for scm-apps? gtk2.tcz works for both tcz- and scm-apps.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: Is gtk2.scm only for scm-apps?
« Reply #1 on: April 22, 2012, 05:25:07 PM »
Hi uggla
Since SCMs are basically meant to be self contained, they probably don't get linked into any of the standard
search paths. That way if they use an older library for example, they won't interfere with other applications
that rely on a newer version of the same library. You can confirm (or disprove) this by entering
sudo find / -name libgtk*   after installing  gtk2.scm  and see where the files and links are located.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Is gtk2.scm only for scm-apps?
« Reply #2 on: April 22, 2012, 09:33:00 PM »
Here's one tip -

if you set LD_LIBRARY_PATH and also perhaps PATH, then you can use the gtk2.scm as the toolkit in many cases.

$ LD_LIBRARY_PATH=/apps/gtk2/lib /path/to/executableapp

That can be exported as the main app, like a browser, is being launched if I am correct.

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: Is gtk2.scm only for scm-apps?
« Reply #3 on: April 23, 2012, 12:42:31 PM »
I got it working using your tip. Thanks!  ;D