Skip to content

Instantly share code, notes, and snippets.

@georgedorn
Forked from michaelbutler/Steam_Proton_Exe.md
Last active October 19, 2021 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgedorn/6df822b7b744d1ffb9baa426debcd857 to your computer and use it in GitHub Desktop.
Save georgedorn/6df822b7b744d1ffb9baa426debcd857 to your computer and use it in GitHub Desktop.
How to run Timberborn on Linux Proton, in a borderless window (probably works for other games)

Timberborn runs fine on Proton, with the one exception that alt-tab causes the game to stop updating the screen. It keeps running (and you can click on stuff) but you're left with either a black window or a frozen window.

You can run the game in a window to prevent this from happening, but then you can't use your full resolution (or have to accept not seeing the bottom of the screen). On some Linux WMs, you can just tell it to run full-screen anyway while the game thinks it is in windowed mode, but on most compositing WMs this doesn't work.

On Windows, there's an open source app called Borderless Gaming to resolve this problem. It is for sale on Steam, though I have no idea if it can be made to run on Proton in combination with another game, given that they don't share the same Wine prefix. However, you can download it for free from the releases page here: https://github.com/Codeusa/Borderless-Gaming/releases/tag/9.5.6

To get Borderless Gaming working on Proton:

# Step 1: install Borderless Gaming into the game's Wine prefix:
cd $HOME/.steam/steam/steamapps/compatdata/1062090  # Timberborn's Steam ID; swap for whatever game
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam"
export STEAM_COMPAT_DATA_PATH="$HOME/.steam/steam/steamapps/compatdata/1062090"
export WINEPREFIX=$PWD

# Adjust the next two for the version of Proton you're running and where you downloaded BorderlessGaming's installer
~/.steam/root/steamapps/common/Proton\ -\ Experimental/proton run $HOME/Downloads/BorderlessGaming9.5.6_admin_setup.exe

# Don't run BG yet; it will stop most games from launching.
# Launch the game from Steam, configure it to be windowed but at your full resolution, then in the same window you did the exports above:
~/.steam/root/steamapps/common/Proton\ -\ Experimental/proton run ./drive_c/Program\ Files\ \(x86\)/Borderless\ Gaming/BorderlessGaming.exe

That should show the game in the left pane. Select it and click the expand window button. Most likely, none of the automatic features or keyboard bindings will work, but that one button will remove the window borders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment