Commit 8f966ae8cd

8f966ae8cd147b0369d1442a585c3c103a5d0519

parent: 60ab61d418

Unregistered key

Nyuke <45631533+Nyuke235@users.noreply.github.com> · 2026-04-13 19:27 UTC
committer: <noreply@github.com>

Discord RPC support for Vesktop (#89)

Layout: unified · split

vendor/github.com/tr1xem/go-discordrpc/internal/ipc/ipc.go +4 −2
@@ -15,9 +15,11 @@ type SocketInterface interface {
15 15
16// GetIpcPath returns the best IPC socket path for the current environment. 16// GetIpcPath returns the best IPC socket path for the current environment.
17func GetIpcPath() string { 17func GetIpcPath() string {
18 uid := fmt.Sprintf("%d", os.Getuid())
18 candidates := []string{ 19 candidates := []string{
19 "/run/user/1000/snap.discord", 20 "/run/user/" + uid + "/.flatpak/dev.vencord.Vesktop/xdg-run",
20 "/run/user/1000/.flatpak/com.discordapp.Discord/xdg-run", 21 "/run/user/" + uid + "/snap.discord",
22 "/run/user/" + uid + "/.flatpak/com.discordapp.Discord/xdg-run",
21 } 23 }
22 24
23 for _, path := range candidates { 25 for _, path := range candidates {