-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError on AppImage with version > 2.8.2 #465
Comments
This sounds like another Ubuntu-based distro specificlaly having difficulties with the Steam Client install location... |
It's probably due to my original steam installation being very old and things like paths have changed a couple of times. I went the length to do a fresh installation of steam and now it works. |
Yeah, doesn't seem to be related to #424
I encountered a similar issue a while ago when I manually created the necessary files for a Steam installation while testing the Snap folders... |
I am not sure why ProtonUp-Qt crashes in the first place. I thought we checked if a potential Steam installation has the VDF files we need before marking it as valid ( I tried to simulate a leftover Steam installation by creating Also @smirgol I just saw these parts of your reply:
This function won't get used until a valid Steam installation is found, so this is not really accurate in practice. We check for a valid installation before listing launchers in the dropdown with We shouldn't be marking a Steam installation as valid unless there is already a Since you've poked around the codebase with fresh eyes, I would be interested to know if you have any insights into why there might be a I did all my tests with the Flatpak and when running from source, although I am really not sure what would be so different about the AppImage.
This is not the purpose of |
Describe the bug
Every version of the ProtonUp-QT AppImage that has been released after 2.8.2, when starting the App, I get a pop-up with a FileNotFound error regarding the
config.vdf
file, followed by an application crash.The path that is mentioned in the error is, obviously, not correct for my installation.
I'm on Ubuntu and have installed steam using the apt package manager (ages ago).
The
config.vdf
file is located in~/.steam/steam/config/config.vdf
The app tries to open the config file from
~/.steam/config/config.vdf
, but, while this config folder does exist, it contains noconfig.vdf
, thus the error.Both config folders have files that recently have been modified, so it does not look to me that one of them is a remnant of a very old installation and obsolete.
To Reproduce
Not sure if this can easily be reproduced, but symlinking
~/.steam/root
to~/.steam
where the~/.steam/config
holds noconfig.vdf
file, will trigger this.Expected behavior
I would expect the app to still be able to detect the correct path for the
config.vdf
file and not to crash if it encounters a config directory without this file.Desktop (please complete the following information):
Additional context
Looking at the code https://github.com/DavidoTek/ProtonUp-Qt/blame/d7c71a8e0b6f37a9a1832cd89a8d9c8fdccc6cf0/pupgui2/steamutil.py#L221 it kinda blindly assumes that if a config folder exists, that there has to be a
config.vdf
file inside it and tries to open it without checking for the file to exist in the first place.In the referenced code above, it now differs from the code that has been used to compile the AppImages 2.91 - 2.10
get_steam_vdf_compat_tool_mapping(vdf.load(open(config_vdf_file)))
is now
get_steam_vdf_compat_tool_mapping(vdf_safe_load(config_vdf_file))
As far as I understand python, the new approach still won't work, as it will run into the exception when opening the file, as it does not exist. The only upside of the new
vdf_safe_load
is a new error message (which isn't helping to be honest, as it already printed what did go wrong).What I think that is happening on my system is that it is checking this path
~/.steam/root
which symlinks to
~/.steam/
and there is the
config
folder, which has noconfig.vdf
- which in turn is in~/.steam/steam/config
Terminal output
The text was updated successfully, but these errors were encountered: