Do not use old tg-cli directory for storing files

This commit is contained in:
mjentsch 2014-10-02 13:30:44 +02:00
parent d4eff42a42
commit 97c8b37121
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -6,7 +6,7 @@
#define MAX_PEER_NUM 100000
#ifndef PROG_NAME
#define PROG_NAME "telegram"
#define PROG_NAME "telegram-purple"
#endif
#include <sys/types.h>