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.
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 raisesPresenceError('Cannot find a socket to connect to Discord')
. Using os.path.join fixes this issue.