Skip to content

Commit

Permalink
Enable fsync & esync by default
Browse files Browse the repository at this point in the history
Also support `PROTON_NO_FSYNC` and `PROTON_NO_ESYNC` environment
variables as used by Proton.
  • Loading branch information
Matoking committed Feb 5, 2022
1 parent 8c5a41f commit 7df41f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).


## [Unreleased]
### Added
- fsync/esync is enabled by default
- `PROTON_NO_FSYNC` and `PROTON_NO_ESYNC` environment variables are supported

### Fixed
- Fix Wine crash when the Steam application and Protontricks are running at the same time
- Fix Steam installation detection when both non-Flatpak and Flatpak versions of Steam are installed for the same user
Expand Down
13 changes: 13 additions & 0 deletions src/protontricks/data/scripts/wine_launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ if [[ -z "$PROTONTRICKS_FIRST_START" ]]; then
done
fi

# Enable fsync & esync by default
if [[ -z "$WINEFSYNC" ]]; then
if [[ -z "$PROTON_NO_FSYNC" || "$PROTON_NO_FSYNC" = "0" ]]; then
export WINEFSYNC=1
fi
fi

if [[ -z "$WINEESYNC" ]]; then
if [[ -z "$PROTON_NO_ESYNC" || "$PROTON_NO_ESYNC" = "0" ]]; then
export WINEESYNC=1
fi
fi

export PROTONTRICKS_FIRST_START=1
fi

Expand Down

0 comments on commit 7df41f4

Please sign in to comment.