Steam for Linux

Steam for Linux

Ruineka Aug 29, 2018 @ 7:01pm
Using Regedit with a game proton
Is there a way to run regedit within a game's "bottle"? I need to edit a few things so I can get Arma 2 to run without throwing the bad serial error.
< >
Showing 1-4 of 4 comments
thetargos Aug 29, 2018 @ 7:12pm 
Yes, assiming you do not have Wine installed:

STEAM_LIBRARY = Your local default games library, usually under $HOME/.local/share/Steam/steamapps/
PROTON_BIN_PATH=$STEAM_LIBRARY/common/Proton 3.7/dist/bin/wine

So you could just then:

env $WINEPREFIX=$STEAM_LIBRARY/compatdata/APPID/pfx $PROTON_BIN_PATH regedit

So in short, as long as you use the long (absolute) paths (I used shell variables just as example, you can do so as well, but you will have to type the absolute paths anyway).

Edit

With wine installed, you do not need to run proton:

env WINEPREFIX=$STEAM_LIBRARY/compatdata/APPID/pfx regedit
Last edited by thetargos; Aug 29, 2018 @ 7:16pm
Cat on Linux Aug 29, 2018 @ 7:14pm 
standard way to invoke regedit with wine
env WINEPREFIX="/your game library/steamapps/compatdata/XXXXX/pfx" wine regedit
where XXXXX is game id. you need wine installed on your OS to do it. or look into proton folder and invoke it from proton's wine path instead of wine
Ruineka Aug 29, 2018 @ 8:21pm 
Originally posted by thetargos:
Yes, assiming you do not have Wine installed:

STEAM_LIBRARY = Your local default games library, usually under $HOME/.local/share/Steam/steamapps/
PROTON_BIN_PATH=$STEAM_LIBRARY/common/Proton 3.7/dist/bin/wine

So you could just then:

env $WINEPREFIX=$STEAM_LIBRARY/compatdata/APPID/pfx $PROTON_BIN_PATH regedit

So in short, as long as you use the long (absolute) paths (I used shell variables just as example, you can do so as well, but you will have to type the absolute paths anyway).

Edit

With wine installed, you do not need to run proton:

env WINEPREFIX=$STEAM_LIBRARY/compatdata/APPID/pfx regedit

Thanks! This worked perfectly.
Putting that to the script will look like
#!/bin/bash if [[ $# -eq 0 || $# -le 2 ]]; then echo "Usage: ${0} STEAM_APPID WINE_COMMAND" exit 1 fi STEAM_APPID="${1}" shift STEAM_LIBRARY="${HOME}/.local/share/Steam/steamapps" PROTON_BIN_PATH="${STEAM_LIBRARY}/common/Proton Hotfix/files/bin/wine64" WINEPREFIX="${STEAM_LIBRARY}/compatdata/${STEAM_APPID}/pfx" export WINEPREFIX "$PROTON_BIN_PATH" "$@"

Copy it to .sh file, chmod +x and use.
< >
Showing 1-4 of 4 comments
Per page: 1530 50