mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 00:05:52 +03:00
[PR #1130] [MERGED] Fix Discord RPC #1818
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#1818
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PlayCover/PlayCover/pull/1130
Author: @TheMoonThatRises
Created: 10/8/2023
Status: ✅ Merged
Merged: 11/2/2023
Merged by: @JoseMoreville
Base:
develop← Head:fix/swordrpc📝 Commits (2)
7b7b3a2fix: discord rpc1e8e74cfix error when container does not exist📊 Changes
11 files changed (+123 additions, -80 deletions)
View changed files
📝
PlayCover.xcodeproj/project.pbxproj(+4 -0)📝
PlayCover/AppInstaller/Installer.swift(+3 -3)📝
PlayCover/Model/AppContainer.swift(+14 -27)📝
PlayCover/Model/AppSettings.swift(+1 -3)📝
PlayCover/Model/Keymapping.swift(+1 -3)📝
PlayCover/Model/PlayApp.swift(+9 -9)📝
PlayCover/Utils/Cacher.swift(+4 -8)➕
PlayCover/Utils/Extensions/PlayAppExtensions.swift(+49 -0)📝
PlayCover/Utils/Extensions/URLExtensions.swift(+23 -5)📝
PlayCover/ViewModel/AppsVM.swift(+2 -5)📝
PlayCover/Views/Uninstaller.swift(+13 -17)📄 Description
Fixes #1112 and requires https://github.com/PlayCover/PlayTools/pull/126, https://github.com/PlayCover/SwordRPC/pull/1. The fix is to symbolically link the discord-ipc socket "file" to the app's own temporary directory in
~/Library/Containers/[App ID]/Data/tmpat the initialisation of each app model. In order to accomplish this, some of the functions and models have been changed, such as theenumeratefunction in FileManager and theAppContainermodel itself. Along with that, thePlayAppExtensions.swiftfile was created to avoid going over the line limit forPlayAppwith SwiftLint.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.