2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

linux version stores data to home dir, fixed keyboard layout switch, fixed notify windows, version 0.5.10

This commit is contained in:
John Preston
2014-07-24 18:00:35 +02:00
parent 41c1effb4a
commit e1f2886f9d
16 changed files with 133 additions and 35 deletions

View File

@@ -27,6 +27,7 @@ Copyright (c) 2014 John Preston, https://tdesktop.com
#include <cstdlib>
#include <unistd.h>
#include <dirent.h>
#include <pwd.h>
namespace {
bool frameless = true;
@@ -767,7 +768,11 @@ QString psCurrentLanguage() {
}
QString psAppDataPath() {
return QString();//objc_appDataPath();
struct passwd *pw = getpwuid(getuid());
if (pw && pw->pw_dir && strlen(pw->pw_dir)) {
return QString::fromLocal8Bit(pw->pw_dir) + qsl("/.TelegramDesktop/");
}
return QString();
}
QString psCurrentExeDirectory(int argc, char *argv[]) {