TenType / discord-rich-presence

A lightweight and safe package for creating custom rich presences on Discord.
https://pypi.org/project/discord-rich-presence/
MIT License
8 stars 2 forks source link

fix: Properly join path segments #1

Closed Amund211 closed 1 year ago

Amund211 commented 1 year ago

On my linux machine, XDG_RUNTIME_DIR is /run/user/1000, which means that simply adding the strings results the incorrect path /run/user/1000discord-ipc-0. In turn this raises PresenceError('Cannot find a socket to connect to Discord'). Using os.path.join fixes this issue.