Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPath = "telegram-desktop"
DefaultPath is the default path/name of Telegram Desktop executable
Variables ¶
This section is empty.
Functions ¶
func GetFlatpakDataHome ¶
GetFlatpakHome returns XDG_DATA_HOME of Telegram Desktop Flatpak app or error
func GetSnapDataHome ¶
GetSnapDataHome returns XDG_DATA_HOME of Telegram Desktop snap or error
Types ¶
type TelegramDesktop ¶
TelegramDesktop represents Telegram Desktop executable
func Executable ¶
func Executable(path string, args []string) (*TelegramDesktop, error)
Executable returns TelegramDesktop struct or error if executable not found
func Flatpak ¶
func Flatpak() (*TelegramDesktop, error)
Flatpak returns TelegramDesktop struct representing Telegram Desktop Flatpak app or error if Flatpak or app is not installed
func (*TelegramDesktop) IsSnap ¶
func (tg *TelegramDesktop) IsSnap() bool
IsSnap returns true if executable seems installed with snap
Click to show internal directories.
Click to hide internal directories.