andweeb / presence.nvim

Discord Rich Presence for Neovim
793 stars 68 forks source link

feat(Flatpak): Add flatpak socket path #129

Closed jiriks74 closed 9 months ago

jiriks74 commented 9 months ago

Look for the Flatpak socket path before normal socket lookup

Properly fixes andweeb/presence.nvim#42

jiriks74 commented 9 months ago

It may not be the best Lua code ever (I don't do Lua) but it works and it should work as long as the XDG_RUNTIME_DIR is set and the Flatpak package is com.discordapp.Discord

jiriks74 commented 9 months ago

Tested and it and it works both with native Discord and Flatpak Discord

jiriks74 commented 9 months ago

closed as this grew into something else. Will open a PR for this again if the project is maintained