diff --git a/config/constants.py b/config/constants.py index 3cc7be0..1621159 100644 --- a/config/constants.py +++ b/config/constants.py @@ -2,7 +2,7 @@ import os import sys name = "Discord Rich Presence for Plex" -version = "2.4.0" +version = "2.4.1" plexClientID = "discord-rich-presence-plex" discordClientID = "413407336082833418" diff --git a/core/discord.py b/core/discord.py index 73c0a67..7c94c65 100644 --- a/core/discord.py +++ b/core/discord.py @@ -11,7 +11,7 @@ import time class DiscordIpcService: def __init__(self): - self.ipcPipe = ("/run/app" if os.path.isdir("/run/app") else os.environ.get("XDG_RUNTIME_DIR", os.environ.get("TMPDIR", os.environ.get("TMP", os.environ.get("TEMP", "/tmp"))))) if isUnix else r"\\?\pipe\discord-ipc-0" + self.ipcPipe = (("/run/app" if os.path.isdir("/run/app") else os.environ.get("XDG_RUNTIME_DIR", os.environ.get("TMPDIR", os.environ.get("TMP", os.environ.get("TEMP", "/tmp"))))) + "/discord-ipc-0") if isUnix else r"\\?\pipe\discord-ipc-0" self.loop: asyncio.AbstractEventLoop = None # pyright: ignore[reportGeneralTypeIssues] self.pipeReader: asyncio.StreamReader = None # pyright: ignore[reportGeneralTypeIssues] self.pipeWriter: asyncio.StreamWriter = None # pyright: ignore[reportGeneralTypeIssues]