# HG changeset patch
# User Sadrul Habib Chowdhury <imadil@gmail.com>
# Date 1154130506 0
# Node ID 9653b21bde9ea63d2cbe3901d8b39036a298f72d
# Parent  c17dd38c562d39dd9c4e8740ccd3ff4bfb393c8b
[gaim-migrate @ 16592]
This would've caused crashes after the tree-restructuring was complete.
A lot of thanks to wabz for testing the thing, finding the bug and fixing it.

committer: Tailor Script <tailor@pidgin.im>

diff -r c17dd38c562d -r 9653b21bde9e console/gntgaim.c
--- a/console/gntgaim.c	Fri Jul 28 18:19:27 2006 +0000
+++ b/console/gntgaim.c	Fri Jul 28 23:48:26 2006 +0000
@@ -246,7 +246,11 @@
 	gaim_plugins_add_search_path(path);
 	g_free(path);
 
-	gaim_plugins_add_search_path("/usr/local/lib/gaim");	/* XXX: */
+#ifdef LIBDIR
+	gaim_plugins_add_search_path(LIBDIR);
+#else
+	gaim_plugins_add_search_path("/usr/local/lib/gaim");	/* XXX: Remove this after the restructure */
+#endif
 
 	if (!gaim_core_init(GAIM_GNT_UI))
 	{