Skip to content

Commit

Permalink
fix(tpath): Add possibly desktop data path for Linux (#588)
Browse files Browse the repository at this point in the history
`~/.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 <[email protected]>
  • Loading branch information
junaire committed Apr 21, 2024
1 parent 88c76de commit 95120c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/tpath/tpath_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 95120c0

Please sign in to comment.