Skip to content

Instantly share code, notes, and snippets.

@God-damnit-all
Created September 29, 2023 03:20
Show Gist options
  • Select an option

  • Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.

Select an option

Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.
Steam -no-browser after patch

Note: disregard the original steam shortcut and only use this batch script(s) to launch steam

steam-no-browser.bat:

@echo off

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

:: exit if steam is already running
tasklist | findstr /i "steam.exe" && exit /b

:: rename binary back to .exe as steam requires it to initialize
if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
)

:: open steam
start "" "%steam_path%\steam.exe" +open steam://open/minigameslist

:: 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
ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
taskkill /f /im "steamwebhelper.exe"

steam-normal.bat:

@echo off

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

:: exit if steam is already running
tasklist | findstr /i "steam.exe" && exit /b

:: rename binary back to .exe as steam requires it to initialize
if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "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