Skip to content

Commit

Permalink
Fixed Discord IPC pipe path for Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
phin05 committed Nov 5, 2023
1 parent 2d2bbbc commit ca7b986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys

name = "Discord Rich Presence for Plex"
version = "2.4.0"
version = "2.4.1"

plexClientID = "discord-rich-presence-plex"
discordClientID = "413407336082833418"
Expand Down
2 changes: 1 addition & 1 deletion core/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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]
Expand Down

0 comments on commit ca7b986

Please sign in to comment.