How to write installer script using default Lutris PREFIX

Hi,
i wanted to write an installer script which installs on the default prefix (~/.local/share/lutris/runners/winesteam/prefix64)

For instance i do:
- task:
app: corefonts d3dx9
description: winetricks for Steam (corefonts) and d3d9
name: winetricks
But whenever i write a file i can’t write it to the prefix and need to assume a default one:

  • write_file:
    content: $INPUT_REFRESHRATE9
    file: .local/share/lutris/runners/winesteam/prefix64/drive_c/users/$USER/Application Data/Ubisoft/Anno1404Addon/Config/Engine.ini

Isn’t there a $PREFIX variable to be set ? Thanks

there is a

$GAMEDIR

Right so you always go up your $GAMEDIR to find out your Lutris PREFIX i suppose. Thanks