From 95120c020f70706af2e901412f4eed4d599974a7 Mon Sep 17 00:00:00 2001 From: Jun Zhang Date: Sun, 21 Apr 2024 22:07:16 +0800 Subject: [PATCH] fix(tpath): Add possibly desktop data path for Linux (#588) `~/.local/share/TelegramDesktop` is also a possible path to store telegram data. Tested on Ubuntu22.04 LTS with the latest Telegram Desktop (v4.16.8). Signed-off-by: Jun Zhang --- pkg/tpath/tpath_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tpath/tpath_linux.go b/pkg/tpath/tpath_linux.go index 728dc42061..93e64c6d15 100644 --- a/pkg/tpath/tpath_linux.go +++ b/pkg/tpath/tpath_linux.go @@ -26,6 +26,7 @@ func desktopAppData(homedir string) []string { // https://github.com/iyear/tdl/issues/92#issuecomment-1699307412 filepath.Join(prefix, "KotatogramDesktop"), filepath.Join(prefix, "64Gram"), + filepath.Join(prefix, "TelegramDesktop"), ) if t, err := filepath.Glob("~/snap/telegram-desktop/*/.local/share/TelegramDesktop"); err == nil {