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


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

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

From Joe Pfeiffer <pfeiffer@cs.nmsu.edu>
Newsgroups comp.os.linux.development.apps
Subject Re: Beyond gtk_init_check() - how do I tell if GTK is installed?
Date 2015-10-01 19:27 -0600
Organization A noiseless patient Spider
Message-ID <1b1tde12ms.fsf@pfeifferfamily.net> (permalink)
References <muikms0poe@news3.newsguy.com> <wwv8u7nvvn1.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <mujsb001ggn@news3.newsguy.com> <wwv1tdeigg1.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <mukg8b019k@news4.newsguy.com>

Show all headers | View raw


Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:

> On 2015-10-01, Richard Kettlewell <rjk@greenend.org.uk> wrote:
>
>> It you want a GTK+ interface and a non-GTK+ interface, I’d recommend
>> providing two executables.
>
> Yech.  Too much hassle - first for me to distribute, second for users
> to try to figure out.  My philosophy is to write programs that are
> aware of their environment and make the best of it; the less you make
> users fiddle with settings, the fewer trouble calls you get.  I'd like
> to have the program run, although maybe put up a message saying, "If
> you'd like it to be _really_ pretty, contact your local IT person and
> have him install GTK+-3.0 for you."  Unless there's an easy way to
> automate that, and the user has Internet access...

Trying to detect whether gtk is available and then loading it yourself
at runtime is going to be a *lot* more work than the scenario you're
describing above.

If I was dead-set on running without gtk being available on the system,
I'd include a statically linked gtk.

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