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:
@@ -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[]) {
|
||||
|
Reference in New Issue
Block a user