Commit 8f966ae8cd
Unregistered key
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. |
| 17 | func GetIpcPath() string { | 17 | func 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 { |