gaim/gaim

Parents f84f650dd356
Children 55acc3ea0ca9
Don't do gnome and kde checks in wingaim - g_find_program_in_path() is even more intensive in win32 than it is elsewhere and, in this case, completely unnecessary.
  • +8 -0
    src/util.c
  • --- a/src/util.c Mon Apr 10 17:25:36 2006 -0400
    +++ b/src/util.c Mon Apr 10 18:07:19 2006 -0400
    @@ -2561,6 +2561,7 @@
    gboolean
    gaim_running_gnome(void)
    {
    +#ifndef _WIN32
    gchar *tmp = g_find_program_in_path("gnome-open");
    if (tmp == NULL)
    @@ -2568,11 +2569,15 @@
    g_free(tmp);
    return (g_getenv("GNOME_DESKTOP_SESSION_ID") != NULL);
    +#else
    + return FALSE;
    +#endif
    }
    gboolean
    gaim_running_kde(void)
    {
    +#ifndef _WIN32
    gchar *tmp = g_find_program_in_path("kfmclient");
    const char *session;
    @@ -2589,6 +2594,9 @@
    * only a problem if you're running something !(KDE || GNOME) and
    * you run Gaim from Konsole. This really shouldn't be a problem. */
    return ((g_getenv("KDEDIR") != NULL) || g_getenv("KDEDIRS") != NULL);
    +#else
    + return FALSE;
    +#endif
    }
    char *