Skip to content

SOLVED: The version file has incorrect format, breaking protonfixes #36

@guihkx

Description

@guihkx

As of Proton-Sarek10-3, protonfixes is not working as expected:

ProtonFixes[1130] WARN: [CONFIG]: Parent directory "/home/gui/.config/protonfixes" does not exist. Abort.
ProtonFixes[1130] CRIT: Version string "Proton-Sarek10-3
" is invalid!
ProtonFixes Traceback (most recent call last):
  File "/home/gui/.var/app/com.valvesoftware.Steam/.local/share/Steam/compatibilitytools.d/Proton-Sarek10-3/protonfixes/__init__.py", line 60, in execute
    fix.main()
  File "/home/gui/.var/app/com.valvesoftware.Steam/.local/share/Steam/compatibilitytools.d/Proton-Sarek10-3/protonfixes/fix.py", line 191, in main
    f'Running protonfixes on "{version.version_name}", build at {version.build_date}.'
AttributeError: 'ProtonVersion' object has no attribute 'version_name'

I'm not familiar with how protonfixes works internally, but the cause of this issue looks simple, and seems to be that the version file in the root of Proton-Sarek10-3 does not have the expected format.

On GE-Proton10-3, the version file looks like this:

1747721687 GE-Proton10-3

On Proton-Sarek10-3, it looks like this:

Proton-Sarek10-3

So I manually added the timestamp to the version file of Proton-Sarek10-3:

1747775583 Proton-Sarek10-3

And then the error went away, and protonfixes worked as expected:

ProtonFixes[1385] WARN: [CONFIG]: Parent directory "/home/gui/.config/protonfixes" does not exist. Abort.
ProtonFixes[1385] INFO: Running protonfixes on "Proton-Sarek10-3", build at 2025-05-20 21:13:03+00:00.
ProtonFixes[1385] INFO: Running checks
ProtonFixes[1385] INFO: All checks successful
ProtonFixes[1385] INFO: Using global defaults for "Plants vs. Zombies: Game of the Year" (3590)
ProtonFixes[1385] INFO: Using global protonfix for "Plants vs. Zombies: Game of the Year" (3590)
ProtonFixes[1385] INFO: Adding argument -changedir

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions