summaryrefslogtreecommitdiff
path: root/finch/finch.c
diff options
context:
space:
mode:
authorStu Tomlinson <nosnilmot@pidgin.im>2010-06-30 02:26:33 +0000
committerStu Tomlinson <nosnilmot@pidgin.im>2010-06-30 02:26:33 +0000
commit41986c40b4e5ff330c5bc1425e343a5e4a32143f (patch)
treea73dede3d25507632229a2cf5eed301da255b966 /finch/finch.c
parentef9f119e4603cb589b63eb826a1cd42347d9f042 (diff)
downloadpidgin-41986c40b4e5ff330c5bc1425e343a5e4a32143f.tar.gz
Create the ~/.purple/plugins directory on startup if it does not exist
already, because the absence of this directory causes a surprising amount of confusion for users told to put their plugins there Also get rid of our SIGHUP handler, because it does nothing
Diffstat (limited to 'finch/finch.c')
-rw-r--r--finch/finch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/finch/finch.c b/finch/finch.c
index 6f305091b2..617bad45aa 100644
--- a/finch/finch.c
+++ b/finch/finch.c
@@ -252,6 +252,7 @@ init_libpurple(int argc, char **argv)
gboolean opt_version = FALSE;
char *opt_config_dir_arg = NULL;
gboolean debug_enabled = FALSE;
+ struct stat st;
struct option long_options[] = {
{"config", required_argument, NULL, 'c'},
@@ -361,6 +362,8 @@ init_libpurple(int argc, char **argv)
purple_idle_set_ui_ops(finch_idle_get_ui_ops());
path = g_build_filename(purple_user_dir(), "plugins", NULL);
+ if (!g_stat(path, &st))
+ g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
purple_plugins_add_search_path(path);
g_free(path);