-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around account switching failing to open the CEF debugger socket
this automates lsof and gdb to force close the socket before steam finishes shutting down (from RegisterForShutdownStart)
- Loading branch information
1 parent
7fc51c8
commit f458fd4
Showing
6 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
// import reloadFix from './reload'; | ||
import restartFix from './restart'; | ||
// import restartFix from './restart'; | ||
import cefSocketFix from "./socket"; | ||
|
||
let fixes: Function[] = []; | ||
|
||
export function deinitSteamFixes() { | ||
fixes.forEach((deinit) => deinit()); | ||
} | ||
|
||
export async function initSteamFixes() { | ||
// fixes.push(await reloadFix()); | ||
fixes.push(await restartFix()); | ||
fixes.push(cefSocketFix()); | ||
// fixes.push(await restartFix()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Logger from "../logger"; | ||
|
||
const logger = new Logger('CEFSocketFix'); | ||
|
||
const closeCEFSocket = DeckyBackend.callable<[], void>("utilities/close_cef_socket"); | ||
|
||
export default function cefSocketFix() { | ||
const reg = window.SteamClient?.User?.RegisterForShutdownStart(async () => { | ||
logger.log("Closing CEF socket before shutdown"); | ||
await closeCEFSocket(); | ||
}); | ||
|
||
if (reg) logger.debug("CEF shutdown handler ready"); | ||
|
||
return () => reg?.unregister(); | ||
} |