Skip to content

Known Workarounds

Ash edited this page Oct 5, 2023 · 13 revisions

Known workarounds for various games that may have trouble running in a snap environment

Factorio

Source: https://wiki.factorio.com/Application_directory1
Factorio will try to write to ~/.factorio to save game data, but this isn't allowed for Snaps. Follow these steps to fix this:

  1. Open ~/snap/steam/common/.steam/steam/steamapps/common/Factorio/config-path.cfg
  2. Change use-system-read-write-data-directories=true to use-system-read-write-data-directories=false
  3. Change config-path=__PATH__system-write-data__/config to config-path=__PATH__executable__/../../config

This will cause Factorio to use the config file at ~/snap/steam/common/.steam/steam/steamapps/common/Factorio/config/config.ini, so, let's create the config.ini file:

  1. Ensure the config directory exists, e.g. mkdir -p ~/snap/steam/common/.steam/steam/steamapps/common/Factorio/config
  2. Create the file ~/snap/steam/common/.steam/steam/steamapps/common/Factorio/config/config.ini and open it up
  3. Add this content verbatim:
    [path]
    read-data=__PATH__executable__/../../data
    write-data=__PATH__executable__/../../writedata

You should be able to start Factorio now! If Factorio asks to reset the config file, select "yes" (it will keep the custom paths we put in).

Clone this wiki locally