changeset 13615:6bf81c38b458

[gaim-migrate @ 16001] 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. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 10 Apr 2006 22:07:19 +0000
parents e186876efaf3
children ee7f92a706ac
files src/util.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Mon Apr 10 21:25:36 2006 +0000
+++ b/src/util.c	Mon Apr 10 22:07:19 2006 +0000
@@ -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 *