r/macprogramming • • Feb 17 '18

Steam Account Switcher for Mac?

Hello, Ive been looking for a way to switch Steam profiles without the whole login/logout process. Basically i'm planning on writing a basic program that will run a script to switch accounts; i found a working script for Windows, not mac. How do i go abouts changing this script to work with Mac?

set username=USR reg add "HKCU\Software\Valve\Steam" /v AutoLoginUser /t REG_SZ /d %username% /f reg add "HKCU\Software\Valve\Steam" /v RememberPassword /t REG_DWORD /d 1 /f start steam://open/main

It would mean a ton! If anyone knows of any other working ways to do this please let me know.

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/adamcym Feb 18 '18

It all seems to work great, only issue is the logging out which I'm sure I can figure out. thanks again !

1

u/Chklx Apr 22 '18 edited Apr 22 '18

u can add below to the head of steam-login.sh,that can help close steam automated.

osascript <<EOF 
    tell application "System Events"
      if exists (application process "Steam") then
    tell application "Steam" to quit
      end if
    end tell
EOF
sleep 2