Skip to content

Instantly share code, notes, and snippets.

@God-damnit-all
Created September 29, 2023 03:20
Show Gist options
  • Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.
Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.
Steam -no-browser after patch

Steam -no-browser after patch (Working June 2023)

  • Disregard the original steam shortcut and only use the batch scripts below to launch steam

  • There is a slight CPU utilization penalty which can be circumvented by suspending the problematic thread

steam-no-browser.bat:

@echo off
setlocal EnableDelayedExpansion

set "steam_path=C:\Program Files (x86)\Steam"

:: kill steam if is running
tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"

:: rename binary back to .exe as steam requires it to initialize
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exee"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exe"
    )
)

:: open steam
start "" "!steam_path!\steam.exe" +open steam://open/minigameslist -vgui

:: only continue if steamwebhelper is running in case steam is updating
:query_steamwebhelper
tasklist | findstr /i "steamwebhelper.exe" || goto :query_steamwebhelper

:: allow a few seconds for steam to initialize/login
timeout /t 5 /nobreak

:: rename binary and kill the process
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exe"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exee"
    )
)

taskkill /f /im "steamwebhelper.exe"

steam-normal.bat:

@echo off
setlocal EnableDelayedExpansion

set "steam_path=C:\Program Files (x86)\Steam"

:: kill steam if is running
tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"

:: rename binary back to .exe as steam requires it to initialize
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exee"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exe"
    )
)

:: open steam
start "" "!steam_path!\steam.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment