Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllInstalls ¶
func GetAllInstalls() map[models.DiscordChannel][]*DiscordInstall
func GetChannel ¶
func GetChannel(proposed string) models.DiscordChannel
func GetSuggestedPath ¶
func GetSuggestedPath(channel models.DiscordChannel) string
func GetVersion ¶
Types ¶
type DiscordInstall ¶
type DiscordInstall struct {
CorePath string `json:"corePath"`
Channel models.DiscordChannel `json:"channel"`
Version string `json:"version"`
IsFlatpak bool `json:"isFlatpak"`
IsSnap bool `json:"isSnap"`
}
func AddCustomPath ¶
func AddCustomPath(proposed string) *DiscordInstall
func ResolvePath ¶
func ResolvePath(proposed string) *DiscordInstall
func Validate ¶
func Validate(proposed string) *DiscordInstall
Validate validates a Discord installation path on Linux. For WSL environments, it uses Windows-style validation. For native Linux, it detects Flatpak and Snap installations.
func (*DiscordInstall) InstallBD ¶
func (discord *DiscordInstall) InstallBD() error
InstallBD installs BetterDiscord into this Discord installation
func (*DiscordInstall) IsInjected ¶
func (discord *DiscordInstall) IsInjected() bool
TODO: consider putting this in the betterdiscord package
func (*DiscordInstall) RepairBD ¶
func (discord *DiscordInstall) RepairBD() error
RepairBD repairs BetterDiscord for this Discord installation
func (*DiscordInstall) UninstallBD ¶
func (discord *DiscordInstall) UninstallBD() error
UninstallBD removes BetterDiscord from this Discord installation
Click to show internal directories.
Click to hide internal directories.