| 377 purple_core_set_ui_ops(gnt_core_get_ui_ops()); |
377 purple_core_set_ui_ops(gnt_core_get_ui_ops()); |
| 378 purple_eventloop_set_ui_ops(gnt_eventloop_get_ui_ops()); |
378 purple_eventloop_set_ui_ops(gnt_eventloop_get_ui_ops()); |
| 379 purple_idle_set_ui_ops(finch_idle_get_ui_ops()); |
379 purple_idle_set_ui_ops(finch_idle_get_ui_ops()); |
| 380 |
380 |
| 381 path = g_build_filename(purple_user_dir(), "plugins", NULL); |
381 path = g_build_filename(purple_user_dir(), "plugins", NULL); |
| 382 if (!g_stat(path, &st)) |
382 if (!g_stat(path, &st)) { |
| 383 g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR); |
383 if (g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) != 0) |
| |
384 fprintf(stderr, "Couldn't create plugins dir\n"); |
| |
385 } |
| 384 purple_plugins_add_search_path(path); |
386 purple_plugins_add_search_path(path); |
| 385 g_free(path); |
387 g_free(path); |
| 386 |
388 |
| 387 purple_plugins_add_search_path(LIBDIR); |
389 purple_plugins_add_search_path(LIBDIR); |
| 388 |
390 |