diff --git a/purple-plugin/telegram-purple.c b/purple-plugin/telegram-purple.c index ba90d58..7ebeb01 100644 --- a/purple-plugin/telegram-purple.c +++ b/purple-plugin/telegram-purple.c @@ -53,6 +53,7 @@ #include "structures.h" #include "net.h" +#define CONFIG_DIR ".telegram-purple" #define BUDDYNAME_MAX_LENGTH 128 static PurplePlugin *_telegram_protocol = NULL; @@ -1208,7 +1209,7 @@ static PurplePluginProtocolInfo prpl_info = { static void tgprpl_init(PurplePlugin *plugin) { - const char *dir = ".telegram"; + const char *dir = CONFIG_DIR; if (!tgconf.base_config_path) { struct passwd *pw = getpwuid(getuid()); int len = strlen (dir) + strlen (pw->pw_dir) + 2; diff --git a/telegram.h b/telegram.h index cc5834c..407f9b4 100644 --- a/telegram.h +++ b/telegram.h @@ -6,7 +6,7 @@ #define MAX_PEER_NUM 100000 #ifndef PROG_NAME -#define PROG_NAME "telegram" +#define PROG_NAME "telegram-purple" #endif #include