Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #805

Re: Beyond gtk_init_check() - how do I tell if GTK is installed?

From Jerry Peters <jerry@example.invalid>
Newsgroups comp.os.linux.development.apps
Subject Re: Beyond gtk_init_check() - how do I tell if GTK is installed?
Date 2015-10-02 20:08 +0000
Organization A noiseless patient Spider
Message-ID <mumo7h$409$1@dont-email.me> (permalink)
References <muikms0poe@news3.newsguy.com> <muk43g$5vj$1@dont-email.me> <mukg8b119k@news4.newsguy.com>

Show all headers | View raw


Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> On 2015-10-01, Jerry Peters <jerry@example.invalid> wrote:
> 
>> Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> 
> <snip>
> 
>>> Can I coax the system to start executing my program and not insist on
>>> the presence of dynamic libraries before I need them, so I can check
>>> whether they're available?  And how can I check whether they're available?
>>
>> Read up on dlopen & friends.
> 
> Thanks, I'll do that.  Better I do the work than the users.
> 

It looks like a PITA though, I like one of the other suggestions: have
2 programs, one GTK, the other not and invoke them with a simple
wrapper script. Something like:

#!/bin/sh
gtk-program "$@" ||
	other-program "$@"

If you segregate the UI from the rest of the logic both programs could
be built from the same code base by linking with a different UI
interface module.

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-01 06:43 +0000
  Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Richard Kettlewell <rjk@greenend.org.uk> - 2015-10-01 09:30 +0100
    Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-01 18:00 +0000
      Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Richard Kettlewell <rjk@greenend.org.uk> - 2015-10-01 19:36 +0100
        Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-01 23:39 +0000
          Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-10-01 19:27 -0600
            Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-02 16:50 +0000
          Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Richard Kettlewell <rjk@greenend.org.uk> - 2015-10-02 09:27 +0100
            Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-02 16:50 +0000
  Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Jerry Peters <jerry@example.invalid> - 2015-10-01 20:12 +0000
    Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-01 23:39 +0000
      Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Jasen Betts <jasen@xnet.co.nz> - 2015-10-02 19:52 +0000
        Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-10-02 20:13 +0000
      Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Jerry Peters <jerry@example.invalid> - 2015-10-02 20:08 +0000
  Re: Beyond gtk_init_check() - how do I tell if GTK is installed? Jasen Betts <jasen@xnet.co.nz> - 2015-10-02 19:38 +0000

csiph-web